@API(status=EXPERIMENTAL,
     since="1.0")
public interface LifecycleContext
| Modifier and Type | Method and Description | 
|---|---|
| <T extends java.lang.annotation.Annotation> | findAnnotation(java.lang.Class<T> annotationClass) | 
| java.lang.String | label() | 
| <T> T | newInstance(java.lang.Class<T> clazz) | 
| java.util.Optional<java.lang.Class<?>> | optionalContainerClass()If the context refers to a class or a method the class or the method's class
 is returned, otherwise  Optional.empty() | 
| java.util.Optional<java.lang.reflect.AnnotatedElement> | optionalElement()If the context refers to a class or a method the class or method
 is returned, otherwise  Optional.empty() | 
| Reporter | reporter() | 
| java.util.Optional<ResolveParameterHook.ParameterSupplier> | resolveParameter(java.lang.reflect.Executable executable,
                int index)Resolve a parameter from a method in the context of property in which it
 is running. | 
java.lang.String label()
@API(status=EXPERIMENTAL,
     since="1.2.5")
java.util.Optional<java.lang.reflect.AnnotatedElement> optionalElement()
Optional.empty()@API(status=EXPERIMENTAL,
     since="1.2.5")
java.util.Optional<java.lang.Class<?>> optionalContainerClass()
Optional.empty()@API(status=EXPERIMENTAL,
     since="1.2.3")
Reporter reporter()
@API(status=EXPERIMENTAL,
     since="1.2.4")
<T extends java.lang.annotation.Annotation> java.util.Optional<T> findAnnotation(java.lang.Class<T> annotationClass)
@API(status=EXPERIMENTAL,
     since="1.2.4")
<T> T newInstance(java.lang.Class<T> clazz)
@API(status=EXPERIMENTAL,
     since="1.2.5")
java.util.Optional<ResolveParameterHook.ParameterSupplier> resolveParameter(java.lang.reflect.Executable executable,
                                                                                                                          int index)
executable - The executable of the test container the parameter of which should be resolvedindex - The parameter's position in a method - starting with 0.CannotResolveParameterException