User Tools

Site Tools



Handlers are registered in the application model. The platform runs the method which is annotated with @Execute. Only one method should be annotated with @Execute.

The run method should not be annotated with @Inject because on every action which requires Inject all methods annotated with @Inject will be executed, even the run method if it is annotated with @Inject.

Field Injection

Handlers should not use field injection (@Inject on fields) because handlers are created as singletons very early in the application lifecycle and fields cannot be reinjected., see

But it is safe to use method injection on the execution method of the handler.

handlers.txt · Last modified: 2014/01/16 09:11 by mihael