Class ModelEventDelegate<T extends PO>

java.lang.Object
org.adempiere.base.event.annotations.EventDelegate
org.adempiere.base.event.annotations.ModelEventDelegate<T>
Type Parameters:
T -
Direct Known Subclasses:
FactsValidateDelegate

public class ModelEventDelegate<T extends PO> extends EventDelegate
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.
Author:
hengsin
  • Constructor Details

    • ModelEventDelegate

      public ModelEventDelegate(T po, org.osgi.service.event.Event event)
      Parameters:
      po -
      event -
  • Method Details

    • getModel

      protected T getModel()
      Get PO model for event
      Returns:
      PO model (MBPartner, MOrder, etc)