java.lang.Object | ||
↳ | com.microstrategy.web.beans.AbstractEventHandlerFactory | |
↳ | com.microstrategy.web.app.beans.AppEventHandlerFactory |
This class is deprecated.
This factory is not used. The bean itself now is responsible to define and create instances of its default event-handler.
This class is responsible for handing out instances of specific event handlers
identified by the type (as defined in EnumSysBeanTypes
).
This class has been deprecated. It's not used by the application anymore.
In the new framework, beans are responsible to create their own event-handler instance.
The bean defines what the default event-hanlder is by implementing the
newDefaultEventHandler()
.
Event definitions can be retrieved through the EventHandlersCatalog
.
This class is cached by the application in the ConfigurationFilesCache
.
The following sample code shows how to access it:
EventHandlersCatalog defns = (EventHandlersCatalog) ConfigurationFilesCache.getConfiguration("/WEB-INF/xml/config/events.xml", EventHandlersCatalog.class);ThoseEventHandlers
that would like to automatically be initialized using this configuration file, should extendSysEventHandler
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static AppEventHandlerFactory |
getInstance()
Returns an instance of the
AppEventHandlerFactory object. | ||||||||||
WebEventHandler |
newEventHandler(int eventHandlerType, boolean populate)
Return a new instance of the specific event handler identified by
the type.
| ||||||||||
WebEventHandler |
newEventHandler(int appBeanType)
Return a new instance of the specific event handler identified by
the type.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WebEventHandler |
initEventHandler(int handlerType, Element eventsNode)
Create an instance of
WebEventHandler based on the handler type and
initialize it with the event node sent in as argument |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns an instance of the AppEventHandlerFactory
object. This is the only way
to get the factory object and is the entry point to the various App Event Handlers.
AppEventHandlerFactory
instance.
Return a new instance of the specific event handler identified by the type.
eventHandlerType | element of the EnumSysBeanTypes enumeration identifying the
type of app bean for which an event handler will be created |
---|---|
populate | boolean indicating if the instance will be populated with its
list of events or not. If not, it is the caller's responsiblity to later do it. |
WebEventHandler
object for the bean requested
Return a new instance of the specific event handler identified by the type. The instance returned is not populated with any events. It is the caller's responsiblity to later initialize the list of events.
appBeanType | element of the EnumSysBeanTypes enumeration identifying the type of app bean |
---|
WebEventHandler
object for the bean requested
Create an instance of WebEventHandler
based on the handler type and
initialize it with the event node sent in as argument
handlerType | int value of the EnumSysBeanTypes enumeration indicating
which type of event handler to create |
---|---|
eventsNode | Element instance with the event information to use for initializing the handler instance |
WebEventHandler
instance initialized.