org.loom.annotation
Annotation Type Event


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface Event

This annotation modifies the configuration associated to the annotated event method.


Optional Element Summary
 java.lang.String[] afterCreate
          This method will be called before action.setContext().
 java.lang.String[] beforeExecute
          This method will be called after validation and before calling the action event method
 java.lang.String[] beforePopulate
          This method will be called before population (injecting the request values into action properties), except any property annotated with EagerProperty.
 java.lang.String[] beforeValidate
          This method will be called after population and before the validation of the action properties.
 boolean defaultEvent
          True if this is the default event, default to false Default evvents are triggered when the 'event' value is missing
 java.lang.String[] doFinally
          This method will be called after the request has been processed, even if there is any exception.
 java.lang.String[] onError
          This method will be called if validation/conversion errors have happened.
 

defaultEvent

public abstract boolean defaultEvent
True if this is the default event, default to false Default evvents are triggered when the 'event' value is missing

Default:
false

afterCreate

public abstract java.lang.String[] afterCreate
This method will be called before action.setContext(). This is the first listener to get called, and is typically used for action postProcessing such as injecting IoC beans and such.

Default:
""

beforePopulate

public abstract java.lang.String[] beforePopulate
This method will be called before population (injecting the request values into action properties), except any property annotated with EagerProperty. This handler is the intended place to retrieve data from any database, using the configured eager properties as primary keys.

Default:
""

beforeValidate

public abstract java.lang.String[] beforeValidate
This method will be called after population and before the validation of the action properties.

Default:
""

onError

public abstract java.lang.String[] onError
This method will be called if validation/conversion errors have happened.

Default:
""

beforeExecute

public abstract java.lang.String[] beforeExecute
This method will be called after validation and before calling the action event method

Default:
""

doFinally

public abstract java.lang.String[] doFinally
This method will be called after the request has been processed, even if there is any exception. Use this for any resource cleanup.

Default:
""