Annotation Interface AfterInitialize


@Target(METHOD) @Retention(RUNTIME) public @interface AfterInitialize
Annotates a Component method to be called after all components are constructed.

The annotated method must be publicly accessible and return void. If the annotated method has parameters, they will be filled with matching components. It is safe to do interface-based searching this way, as all components will be constructed by the time this method is called.

Other valid parameters of this method can be ServletContext, which passes in the application's Servlet Context. Another can be SmallConfiguration, which passes in the configuration for bootstrapping/configuring the application, as well as SmallEnvironment, which is the main component manager itself.

Author:
Matthew Tropiano
See Also: