org.apache.tapestry5.ioc.annotations
Annotation Type PostInjection


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
@UseWith(value=SERVICE)
public @interface PostInjection

Annotation for methods that should be invoked after injection. This occurs last: after constructor injection and after field injection. It should be placed on a public method. Any return value from the method is ignored. The order of invocation for classes with multiple marked methods (including methods inherited from super-classes) is not, at this time, defined.

Tapestry also honors the PostConstruct annotation, and treats it identically to PostInjection. This is both more flexible than PostConstruct (in that methods may have parameters, and multiple methods may be annotated) but also falls short (Tapestry will only seek out public methods).



Copyright © 2003-2012 The Apache Software Foundation.