|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.cmi.component.event.EventComponent
public class EventComponent
Implementation of the CMI event component.
| Constructor Summary | |
|---|---|
EventComponent()
|
|
| Method Summary | |
|---|---|
void |
init()
|
void |
registerCMIManagedObject(org.ow2.cmi.event.CMIManagedObject object,
org.ow2.util.event.api.IEventDispatcher dispatcher)
Register a new CMI managed object. If a CMI managed object with the same id is already registered, it will be unregistered first. |
void |
registerEventListener(org.ow2.cmi.event.CMIEventListener eventListener)
Register a new event listener. The listener will automatically be register with each dispatcher matching his filter. |
void |
setEventService(org.ow2.util.event.api.IEventService service)
Set the event service to use. |
void |
start()
|
void |
stop()
|
void |
unregisterCMIManagedObject(org.ow2.cmi.event.CMIManagedObject object)
Unregister a CMI managed object. |
void |
unregisterEventListener(org.ow2.cmi.event.CMIEventListener eventListener)
Unregister an event listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventComponent()
| Method Detail |
|---|
public void setEventService(org.ow2.util.event.api.IEventService service)
service - The event service to use.
public void init()
throws org.ow2.util.component.api.ComponentException
init in interface org.ow2.util.component.api.Componentorg.ow2.util.component.api.ComponentException
public void start()
throws org.ow2.util.component.api.ComponentException
start in interface org.ow2.util.component.api.Componentorg.ow2.util.component.api.ComponentException
public void stop()
throws org.ow2.util.component.api.ComponentException
stop in interface org.ow2.util.component.api.Componentorg.ow2.util.component.api.ComponentExceptionpublic void registerEventListener(org.ow2.cmi.event.CMIEventListener eventListener)
registerEventListener in interface org.ow2.cmi.event.CMIEventComponenteventListener - The listener to register.public void unregisterEventListener(org.ow2.cmi.event.CMIEventListener eventListener)
unregisterEventListener in interface org.ow2.cmi.event.CMIEventComponenteventListener - The listener to unregister.
public void registerCMIManagedObject(org.ow2.cmi.event.CMIManagedObject object,
org.ow2.util.event.api.IEventDispatcher dispatcher)
registerCMIManagedObject in interface org.ow2.cmi.event.CMIEventComponentobject - The CMI managed object to register.dispatcher - The event dispatcher for this CMI managed object.public void unregisterCMIManagedObject(org.ow2.cmi.event.CMIManagedObject object)
unregisterCMIManagedObject in interface org.ow2.cmi.event.CMIEventComponentobject - The CMI managed object to unregister.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||