@API(status=EXPERIMENTAL, since="1.0") public interface PropertyLifecycleContext extends LifecycleContext
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
containerClass()
The container class in which the current property method is running.
|
java.lang.String |
extendedLabel()
The extended label contains additional information about the current container class.
|
java.lang.reflect.Method |
targetMethod()
The method that defines the current property or example.
|
java.lang.Object |
testInstance()
The current instance of the property's container class.
|
findAnnotation, label, newInstance, optionalContainerClass, optionalElement, reporter, resolveParameter
java.lang.reflect.Method targetMethod()
java.lang.Class<?> containerClass()
Most of the time that's also the defining class. It differs when running properties that are defined in a super class or an implemented interface.
java.lang.Object testInstance()
@API(status=EXPERIMENTAL, since="1.2.3") java.lang.String extendedLabel()