|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlai.client.EventContext
A frame of reference for generating/receiving events. This class is used by ApplicationView to manage the event delivery mechanics in methods such as postEvent, addEventListener, etc.
Constructor Summary | |
protected |
EventContext()
Constructor for use by Java serialization framework. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
javax.naming.Context context,
java.lang.String jmsTopicName)
Get an EventContext object using the given JNDI context, and attached to the JMS topic given by jmsTopicName. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
javax.naming.Context context,
javax.jms.Topic jmsTopic)
Get an EventContext object using the given JNDI context, and attached to the given JMS topic. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
java.util.Hashtable env,
java.lang.String jmsTopicName)
Get an EventContext object using an initial JNDI context obtained using the properties set in env, and attached to the JMS topic given by jmsTopicName. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
java.util.Hashtable env,
java.lang.String jmsTopicName,
boolean connect)
Get an EventContext object using an initial JNDI context obtained using the properties set in env, and attached to the JMS topic given by jmsTopicName. |
Method Summary | |
void |
addListener(java.lang.String eventTypeName,
EventListener eventListener)
Register a listener for all events of type eventTypeName. |
void |
addListener(java.lang.String eventTypeName,
EventListener eventListener,
java.lang.String subscriberName)
Register a listener for all events of type eventTypeName. |
protected void |
checkClosed()
|
void |
close()
Close JMS resources. |
boolean |
containsListener(java.lang.String eventTypeName,
EventListener listener)
Has this EventContext already had EventListener given by listener register interest in events of type eventTypeName. |
protected void |
finalize()
Cleans up this EventContext instance when the garbage collector determines this object is no longer needed. |
javax.naming.Context |
getContext()
Get the JNDI context being used. |
javax.jms.Topic |
getJMSTopic()
Get the JMS topic being used. |
java.lang.String |
getSourceKey()
|
java.lang.String |
getSourceType()
|
protected void |
initialize()
Initialize JMS. |
void |
postEvent(java.lang.String eventType,
IEvent event)
Post an event with the given type and represented by the given event to this EventContext. |
void |
reinitialize()
Reinitialize JMS resources using stored environment properties, and JMS topic name. |
boolean |
removeListener(java.lang.String eventTypeName,
EventListener listener)
Remove this listener from the list of listeners on events of type eventTypeName. |
protected void |
setContext(javax.naming.Context context)
Set the JNDI context to use. |
protected void |
setJMSTopic(javax.jms.Topic topic)
Set the JMS topic to use. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected EventContext()
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, java.util.Hashtable env, java.lang.String jmsTopicName) throws javax.naming.NamingException, EventContextException
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, java.util.Hashtable env, java.lang.String jmsTopicName, boolean connect) throws javax.naming.NamingException, EventContextException
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, javax.naming.Context context, java.lang.String jmsTopicName) throws javax.naming.NamingException, EventContextException
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, javax.naming.Context context, javax.jms.Topic jmsTopic) throws javax.naming.NamingException, EventContextException
Method Detail |
protected void finalize() throws java.lang.Throwable
public java.lang.String getSourceKey()
public java.lang.String getSourceType()
protected void initialize() throws javax.naming.NamingException, EventContextException
public void close()
protected void checkClosed() throws EventContextException
public void postEvent(java.lang.String eventType, IEvent event) throws DocumentException, EventContextException
public void addListener(java.lang.String eventTypeName, EventListener eventListener) throws EventContextException
public void addListener(java.lang.String eventTypeName, EventListener eventListener, java.lang.String subscriberName) throws EventContextException
eventTypeName
- eventListener
- subscriberName
- unique name for a durable subscriberpublic boolean containsListener(java.lang.String eventTypeName, EventListener listener)
public boolean removeListener(java.lang.String eventTypeName, EventListener listener)
protected void setJMSTopic(javax.jms.Topic topic)
protected void setContext(javax.naming.Context context)
public javax.naming.Context getContext()
public javax.jms.Topic getJMSTopic()
public void reinitialize() throws javax.naming.NamingException, EventContextException
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |