Package org.adempiere.base.event.annotations
package org.adempiere.base.event.annotations
Provide classes and annotation for OSGi event handling.
Developer create subclass of event delegate (or one of its more specialized subclass like model event delegate) and uses method annotation to handle OSGi event.
Developer create subclass of event delegate (or one of its more specialized subclass like model event delegate) and uses method annotation to handle OSGi event.
-
ClassDescriptionMethod annotation for handling of after load preference eventMethod annotation for handling of after login eventEvent delegate for login event.
To handle login event, create a subclass of this and implement theAfterLoginEventDelegate.onAfterLogin(LoginEventData)
method.Base class for event handler that works with annotation driven event delegate (EventTopicDelegate
).Method annotation for handling of broadcast message eventAnnotation driven event delegate base class that works together withBaseEventHandler
.
Subclass implementation doesn't have to be thread safe as event delegate is create and throw away for each event call.
Subclass should useEventTopic
or one of its derived annotation to define the event topic to handle.Method annotation for OSGi event topic.ModelEventDelegate<T extends PO>Event delegate for PO related event.
To handle a model event, create a subclass of this and uses the model event annotation (BeforeChange, BeforeComplete, etc) to annotate the event handling method.ModelEventHandler<T extends PO>Event handler for PO related events.Method annotation for handling of send request email eventEvent delegate forRequestSendEMail
event topic.Event handler that delegate toEventDelegate
instance (create for each event call).
This is use byAnnotationBasedEventManager
and usually developer doesn't have to use this class directly.