Annotation Type BeforeProperty


  • @Target({ANNOTATION_TYPE,METHOD})
    @Retention(RUNTIME)
    @API(status=MAINTAINED,
         since="1.4.0")
    public @interface BeforeProperty
    Annotate methods of a container class with @BeforeProperty to have them run once before each property (or example) including properties (or examples) of embedded containers.

    @BeforeProperty methods are inherited from superclasses and implemented interfaces as long as they are not hidden or overridden.

    In embedded container classes the @BeforeProperty methods from the inner container are run after the outer container's methods.

    The execution order of multiple @BeforeProperty methods within the same container is not guaranteed and might change.

    Parameters of this method will be resolved using registered instances of ResolveParameterHook. Parameters with annotation ForAll are not allowed.

    See Also:
    AfterProperty