com.ibm.tivoli.maximo.miniapps.control.annotations

Class MXEventManager

  • java.lang.Object
    • com.ibm.tivoli.maximo.miniapps.control.annotations.MXEventManager


  • public class MXEventManager
    extends java.lang.Object
    MXEventManager will catalog MXEvent handlers and route the event to the method when it is processed. This creates a more readable, and typesafe way of handling events
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.lang.Class classToManage
      this is the object managed by this event manager
      static java.lang.String DEFAULT_MANAGER_ID 
      protected java.util.Map eventInfo
      map of indexed events in the managed class
    • Constructor Summary

      Constructors 
      Constructor and Description
      MXEventManager(java.lang.Object eventHandler)
      Creates the manager, handling events registered in the classToManage.
    • Field Detail

      • DEFAULT_MANAGER_ID

        public static final java.lang.String DEFAULT_MANAGER_ID
        See Also:
        Constant Field Values
      • classToManage

        protected java.lang.Class classToManage
        this is the object managed by this event manager
      • eventInfo

        protected java.util.Map eventInfo
        map of indexed events in the managed class
    • Constructor Detail

      • MXEventManager

        public MXEventManager(java.lang.Object eventHandler)
        Creates the manager, handling events registered in the classToManage.
    • Method Detail

      • processEvent

        public java.lang.Object processEvent(java.lang.String name,
                                             WebClientEvent event,
                                             WebClientSession wcs)
                                      throws MXException,
                                             java.rmi.RemoteException
        Processes an event for the given receiver.
        Parameters:
        name -
        receiver -
        event -
        wcs -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        java.lang.IllegalAccessException
        java.lang.IllegalArgumentException
        java.lang.reflect.InvocationTargetException
      • hasEvent

        public boolean hasEvent(java.lang.String mxeventName)
        Returns true if we are manageing this event name
        Parameters:
        mxeventName -
        Returns:
      • getContentType

        public java.lang.String getContentType(java.lang.String mxeventName)
      • getTargetClassName

        public java.lang.String getTargetClassName()