Package com.microstrategy.web.beans
Class WebEventHandlerFactory
- java.lang.Object
-
- com.microstrategy.web.beans.AbstractEventHandlerFactory
-
- com.microstrategy.web.beans.WebEventHandlerFactory
-
- All Implemented Interfaces:
EnumEventHandlerTypes
,WebEventTags
public class WebEventHandlerFactory extends AbstractEventHandlerFactory implements EnumEventHandlerTypes
Deprecated.This factory is not used. The bean itself now is responsible to define and create instances of its default event-handler.This class represents a factory for instantiating variousWebEventHandler
objects. The type of event-handlers is retrieved from theEnumEventHandlerTypes
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
AbstractWebComponent.newDefaultEventHandler()
.Event definitions can be retrieved through the
EventHandlersCatalog
. This class is cached by the application in theConfigurationFilesCache
. The following sample code shows how to access it:EventHandlersCatalog defns = (EventHandlersCatalog) ConfigurationFilesCache.getConfiguration("/WEB-INF/xml/config/events.xml", EventHandlersCatalog.class);
EventHandlers
that would like to automatically be initialized using this configuration file, should extendSysEventHandler
.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from interface com.microstrategy.web.beans.EnumEventHandlerTypes
HANDLER_ANNOTATION_BEAN, HANDLER_PROMPT_ANSWER, HANDLER_TYPE_ADDRESS_LIST, HANDLER_TYPE_ASSOCIATED_SCHEDULES, HANDLER_TYPE_ATTRIBUTE, HANDLER_TYPE_CONSTANT_PROMPT, HANDLER_TYPE_CUSTOMGROUP, HANDLER_TYPE_DATA_EXPLORER, HANDLER_TYPE_DIMTY_PROMPT, HANDLER_TYPE_DOCUMENT, HANDLER_TYPE_EDITABLE_OBJECT, HANDLER_TYPE_ELEMENT_PROMPT, HANDLER_TYPE_EXPRESSION, HANDLER_TYPE_EXPRESSION_PROMPT, HANDLER_TYPE_FOLDER, HANDLER_TYPE_GENERIC, HANDLER_TYPE_GROUP, HANDLER_TYPE_IMPORT_WIZARD, HANDLER_TYPE_INBOX, HANDLER_TYPE_OBJECT, HANDLER_TYPE_OBJECT_PROMPT, HANDLER_TYPE_PROMPT, HANDLER_TYPE_PROMPT_DEFINITION, HANDLER_TYPE_PROMPTS, HANDLER_TYPE_REPORT, HANDLER_TYPE_RW, HANDLER_TYPE_SCHEDULE, HANDLER_TYPE_SECURITY_FILTER, HANDLER_TYPE_SECURITY_ROLE, HANDLER_TYPE_SUBSCRIPTION, HANDLER_TYPE_SUBSCRIPTION_FOLDER, HANDLER_TYPE_THRESHOLD, HANDLER_TYPE_THRESHOLD_BEAN, HANDLER_TYPE_USER, HANDLER_TYPE_USER_ENTITIES, HANDLER_TYPE_USER_ENTITY, HANDLER_TYPE_USER_SEARCH, HANDLER_TYPE_VIEW
-
Fields inherited from interface com.microstrategy.web.beans.WebEventTags
ATT_ARGUMENT_ENUMERATOR, ATT_ARGUMENT_ID, ATT_ARGUMENT_INDEX, ATT_ARGUMENT_NAME, ATT_ARGUMENT_REQUIRED, ATT_ARGUMENT_TYPE, ATT_ARGUMENT_VALIDATOR, ATT_ARGUMENT_VALUE, ATT_EVENT_DEPRECATED, ATT_EVENT_ENUMERATOR, ATT_EVENT_HANDLER_ENUMERATOR, ATT_EVENT_HANDLER_NAME, ATT_EVENT_HANDLER_TYPE, ATT_EVENT_ID, ATT_EVENT_NAME, ATT_EVENT_TARGET, TAG_ARGUMENT, TAG_ARGUMENTS, TAG_EVENT, TAG_EVENT_HANDLER, TAG_EVENT_HANDLERS, TAG_EVENTS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WebEventHandlerFactory
getInstance()
Deprecated.Returns a singleton of this factory.protected WebEventHandler
initEventHandler(int handlerType, org.w3c.dom.Element eventsNode)
Deprecated.Initialize aWebEventHandler
based on the specified type and XML representation for this factory.WebEventHandler
newEventHandler(int eventHandlerType)
Deprecated.Instantiates a type specificWebEventHandler
based on the specified type.WebEventHandler
newEventHandler(int eventHandlerType, boolean populate)
Deprecated.Instantiates a type specificWebEventHandler
based on the specified type.GenericMultipleEvents
newMultipleEventHelper()
Deprecated.Instantiates aGenericMultipleEvents
object to assist handling multiple events.-
Methods inherited from class com.microstrategy.web.beans.AbstractEventHandlerFactory
addEventsToHandlers, addEventsToHandlers, destroy, getEventHandler, initEventHandlers, setEventHandler
-
-
-
-
Method Detail
-
getInstance
public static WebEventHandlerFactory getInstance()
Deprecated.Returns a singleton of this factory. This is entry point to gain access to variousWebEventHandler
.- Returns:
- a singleton of
WebEventHandlerFactory
.
-
newEventHandler
public WebEventHandler newEventHandler(int eventHandlerType)
Deprecated.Instantiates a type specificWebEventHandler
based on the specified type. The newly created event handler is populated with the default events defined in the SDK level.- Parameters:
eventHandlerType
- the type of an event handler.- Returns:
- a type specific
WebEventHandler
-
newMultipleEventHelper
public GenericMultipleEvents newMultipleEventHelper()
Deprecated.Instantiates aGenericMultipleEvents
object to assist handling multiple events. The newly created helper object has a generic event handler of typeEnumEventHandlerTypes.HANDLER_TYPE_GENERIC
associated with it.- Returns:
- a
GenericMultipleEvents
object. - Since:
- MicroStrategy Web 8.0.0
-
newEventHandler
public WebEventHandler newEventHandler(int eventHandlerType, boolean populate)
Deprecated.Instantiates a type specificWebEventHandler
based on the specified type. The boolean parameterpopulate
decides \ Whether to populated the new event handler with the default events defined in the SDK level or not.- Parameters:
eventHandlerType
- the type of an event handler.populate
- true if the event handler is populated with the default SDK events.- Returns:
- a type specific
WebEventHandler
-
initEventHandler
protected WebEventHandler initEventHandler(int handlerType, org.w3c.dom.Element eventsNode)
Deprecated.Initialize aWebEventHandler
based on the specified type and XML representation for this factory.- Specified by:
initEventHandler
in classAbstractEventHandlerFactory
- Parameters:
handlerType
- an event handler typeeventsNode
- aorg.w3c.dom.Element
object representing an event handler.- Returns:
- a new type specific
WebEventHandler
instance
-
-