24 lines
586 B
Java
24 lines
586 B
Java
package info.ebenoit.ebul.cmp;
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
|
|
|
|
/**
|
|
* This annotation can be used to indicate that a method should be called as part of the component's lifecycle.
|
|
*
|
|
* @author <a href="mailto:ebenoit@ebenoit.info">E. Benoît</a>
|
|
*/
|
|
@Retention( RetentionPolicy.RUNTIME )
|
|
@Target( ElementType.METHOD )
|
|
public @interface LifecycleMethod
|
|
{
|
|
|
|
/** The lifecycle stage to which the method corresponds. */
|
|
public LifecycleStage value( );
|
|
|
|
}
|