Importing some code
* Various annotations * New component information class
This commit is contained in:
parent
48466ed511
commit
e2de94eb7b
14 changed files with 826 additions and 0 deletions
src/main/java/info/ebenoit/ebul/cmp
24
src/main/java/info/ebenoit/ebul/cmp/LifecycleMethod.java
Normal file
24
src/main/java/info/ebenoit/ebul/cmp/LifecycleMethod.java
Normal file
|
@ -0,0 +1,24 @@
|
|||
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( );
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue