|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.model.events.AbstractEventDispatcher
oracle.adf.model.binding.events.EventDispatcherImpl
public class EventDispatcherImpl
A EventDispatcherImpl implements EventDispatcher interface This class helps in dispatching the event.
EventDispatcher
Field Summary | |
---|---|
static java.lang.String |
DOT_SEP
|
protected DCBindingContainer |
mBndContainer
|
static java.lang.String |
PAYLOAD
|
Constructor Summary | |
---|---|
EventDispatcherImpl(DCBindingContainer container)
constructor |
Method Summary | |
---|---|
void |
addDynamicEventSubscription(java.lang.String containerName)
|
protected EventNameResolver |
createNameResolverInstance()
createNameResolverInstance Returns a new DefaultEventNameResolver instance if it doesnt exixts |
void |
dispatchEvent(java.util.ArrayList eventsDefsToHandle,
Event eventObject,
java.lang.String qualifiedProducerName)
dispatchEvent this method starts dispatching the event to the current bindingcontainer and then to its parent |
protected void |
dispatchEventForCurrentContainer(java.util.ArrayList eventsDefsToHandle,
Event eventObject,
java.lang.String qualifiedProducerName)
dispatchEventForCurrentContainer this method given the event name and producer qualified name retrieves the ProducerDef in the EventMap |
protected void |
dispatchEventForSubscription(ProducerDef prodDef,
EventDefinition eventDef,
Event eventObject)
dispatchEventForSubscription this method calls dispatchEventToConsumer method |
void |
dispatchEventForWildCards(java.util.ArrayList eventsDefsToHandle,
Event eventObject)
|
void |
dispatchEventFromChildContainer(java.util.ArrayList eventsDefsToHandle,
Event eventObject,
java.lang.String qualifiedProducerName)
dispatchEventFromChildContainer this method dispatches if this container listens to events generated by child containers |
protected void |
dispatchEventToChildForWildCards(DCBindingContainer regBnd,
java.util.ArrayList eventsDefsToHandle,
Event eventObject)
|
protected void |
dispatchEventToConsumer(ConsumerDef consumerDef,
Event eventObject)
dispatchEventToConsumer() gets the consumer from the qualified name and invokes the event |
protected void |
dispatchEventToParent(java.util.ArrayList eventsDefsToHandle,
Event eventObject,
java.lang.String qualifiedProducerName)
|
protected ProducerDef |
findMatchingSubscription(EventMapDef eMap,
java.lang.String eventName,
java.lang.String producerRefName)
|
protected void |
fireEvent(java.util.ArrayList eventDefList,
Event eventObject)
fireEvent starts propogating the events by constructing the Qualified producer name |
void |
fireEvent(EventProducer producer,
java.lang.Object payLoad)
fireEvent starting point for the events to get propogated |
void |
fireEvent(EventProducer producer,
java.lang.Object payLoad,
EventDefinition[] eventDefs)
fireEvent starting point for the events to get propogated |
java.util.List<java.lang.String> |
getDynamicEventSubscriptionList()
|
EventNameResolver |
getEventNameResolver()
getEventNameResolver Returns the EventNameResolver which this EventDispatcherImpl has |
EventConsumer |
getRegisteredEventConsumer(java.lang.String consumerName)
getRegisteredEventConsumer used to get any consumer which is registered with EventHandler |
boolean |
hasDynamicEventSubscription(java.lang.String name)
|
protected void |
invokeEvent(EventConsumer consumer,
Event eventObject,
java.util.HashMap consumerParamMap)
invokeEvent passes on the control to the consumer to handle the event. |
void |
processContextualEvents()
processContextualEvents used to propagate queued events |
protected void |
processContextualEventsToChildContainers(DCBindingContainer regBnd)
|
void |
queueEvent(EventProducer producer,
java.lang.Object payLoad)
queueEvent queues up the event to be invoked |
void |
registerEventConsumer(EventConsumer consumer)
registerEventConsumer used to register any consumer with EventHandler |
BindingContext |
retriveBindingContext(DCBindingContainer container)
|
void |
setEventNameResolver(EventNameResolver eventNameResolver)
setEventNameResolver sets the EventNameResolver to this EventDispatcherImpl |
void |
unRegisterEventConsumer(EventConsumer consumer)
unRegisterEventConsumer used to unregister any consumer with EventHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DOT_SEP
public static final java.lang.String PAYLOAD
protected final DCBindingContainer mBndContainer
Constructor Detail |
---|
public EventDispatcherImpl(DCBindingContainer container)
container
- DCBindingContainerMethod Detail |
---|
protected EventNameResolver createNameResolverInstance()
public EventNameResolver getEventNameResolver()
public void setEventNameResolver(EventNameResolver eventNameResolver)
eventNameResolver
- EventNameResolverpublic void fireEvent(EventProducer producer, java.lang.Object payLoad)
producer
- EventProducerpayLoad
- Objectpublic void fireEvent(EventProducer producer, java.lang.Object payLoad, EventDefinition[] eventDefs)
producer
- EventProducerpayLoad
- Object PayloadeventDefs
- EventDefinition arrayprotected void fireEvent(java.util.ArrayList eventDefList, Event eventObject)
eventDefList
- ArrayListeventObject
- Eventpublic void dispatchEvent(java.util.ArrayList eventsDefsToHandle, Event eventObject, java.lang.String qualifiedProducerName)
eventsDefsToHandle
- ArrayList list of eventDef's to be handledeventObject
- Event ObjectqualifiedProducerName
- String has the qualified name of the Producerprotected void dispatchEventToParent(java.util.ArrayList eventsDefsToHandle, Event eventObject, java.lang.String qualifiedProducerName)
public void dispatchEventFromChildContainer(java.util.ArrayList eventsDefsToHandle, Event eventObject, java.lang.String qualifiedProducerName)
eventsDefsToHandle
- ArrayList list of eventDef's to be handledeventObject
- Event ObjectqualifiedProducerName
- String has the qualified name of the Producerprotected void dispatchEventForCurrentContainer(java.util.ArrayList eventsDefsToHandle, Event eventObject, java.lang.String qualifiedProducerName)
eventsDefsToHandle
- ArrayList list of eventDef's to be handledeventObject
- Event ObjectqualifiedProducerName
- String has the qualified name of the Producerpublic void dispatchEventForWildCards(java.util.ArrayList eventsDefsToHandle, Event eventObject)
dispatchEventForWildCards
in interface EventDispatcher
dispatchEventForWildCards
in class AbstractEventDispatcher
protected void dispatchEventToChildForWildCards(DCBindingContainer regBnd, java.util.ArrayList eventsDefsToHandle, Event eventObject)
protected void dispatchEventForSubscription(ProducerDef prodDef, EventDefinition eventDef, Event eventObject)
prodDef
- ProducerDef producer of the eventeventDef
- EventDefinition event which is beging producedeventObject
- Event Objectprotected void dispatchEventToConsumer(ConsumerDef consumerDef, Event eventObject)
consumerDef
- ConsumerDef of this eventeventObject
- Event Objectprotected void invokeEvent(EventConsumer consumer, Event eventObject, java.util.HashMap consumerParamMap)
consumerParamMap
- HashMap parameters of ConsumerDefprotected ProducerDef findMatchingSubscription(EventMapDef eMap, java.lang.String eventName, java.lang.String producerRefName)
public BindingContext retriveBindingContext(DCBindingContainer container)
public void registerEventConsumer(EventConsumer consumer)
EventDispatcher
consumer
- EventConsumerpublic void unRegisterEventConsumer(EventConsumer consumer)
EventDispatcher
consumer
- EventConsumerpublic EventConsumer getRegisteredEventConsumer(java.lang.String consumerName)
EventDispatcher
consumerName
- Stringpublic void queueEvent(EventProducer producer, java.lang.Object payLoad)
queueEvent
in interface EventDispatcher
queueEvent
in class AbstractEventDispatcher
producer
- EventProducerpayLoad
- Object Payloadpublic void processContextualEvents()
processContextualEvents
in interface EventDispatcher
processContextualEvents
in class AbstractEventDispatcher
protected void processContextualEventsToChildContainers(DCBindingContainer regBnd)
public java.util.List<java.lang.String> getDynamicEventSubscriptionList()
getDynamicEventSubscriptionList
in interface EventDispatcher
getDynamicEventSubscriptionList
in class AbstractEventDispatcher
public void addDynamicEventSubscription(java.lang.String containerName)
addDynamicEventSubscription
in interface EventDispatcher
addDynamicEventSubscription
in class AbstractEventDispatcher
public boolean hasDynamicEventSubscription(java.lang.String name)
hasDynamicEventSubscription
in interface EventDispatcher
hasDynamicEventSubscription
in class AbstractEventDispatcher
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |