|
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.
Field Summary | |
static int |
JMS_QUEUE
|
static int |
JMS_TOPIC
|
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 jmsDestName)
Deprecated. This method is too ambiguous because this Class now supports a JMS queue or topic as a destination. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
javax.naming.Context context,
java.lang.String jmsDestName,
int jmsDestType,
boolean bTransactedJMSSession)
Get an EventContext object using the given JNDI context. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
javax.naming.Context context,
javax.jms.Topic jmsTopic)
Deprecated. This method leaves the object in an un-initialized state if it is serialized because there is no way to re-establish the JMS Topic. Callers should use the constructor that specifies the JMS Topic JNDI name and let this instance lookup the Topic directly. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
java.util.Hashtable env,
java.lang.String jmsDestName)
Deprecated. This method is too ambiguous because this Class now supports a JMS queue or topic as a destination. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
java.util.Hashtable env,
java.lang.String jmsDestName,
boolean connect)
Deprecated. This method is too ambiguous because this Class now supports a JMS queue or topic as a destination. |
|
EventContext(java.lang.String sourceKey,
java.lang.String sourceType,
java.util.Hashtable env,
java.lang.String jmsDestName,
int jmsDestType,
boolean bTransactedJMSSession)
Get an EventContext object using the given JNDI context. |
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. |
protected void |
closeQueueResources()
|
protected void |
closeTopicResources()
|
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.Queue |
getJMSQueue()
Get the JMS queue being used; may be null depending on construction |
javax.jms.Topic |
getJMSTopic()
Get the JMS topic being used; may be null depending on construction |
java.lang.String |
getSourceKey()
|
java.lang.String |
getSourceType()
|
protected void |
initialize()
Initialize JMS. |
protected void |
initQueueSender()
|
protected void |
initTopicPublisher()
|
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 |
setJMSQueue(javax.jms.Queue queue)
Set the JMS queue to use. |
protected void |
setJMSTopic(javax.jms.Topic topic)
Set the JMS topic to use. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int JMS_TOPIC
public static final int JMS_QUEUE
Constructor Detail |
protected EventContext()
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, java.util.Hashtable env, java.lang.String jmsDestName) throws javax.naming.NamingException, EventContextException
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, java.util.Hashtable env, java.lang.String jmsDestName, boolean connect) throws javax.naming.NamingException, EventContextException
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, javax.naming.Context context, java.lang.String jmsDestName) 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
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, java.util.Hashtable env, java.lang.String jmsDestName, int jmsDestType, boolean bTransactedJMSSession) throws javax.naming.NamingException, EventContextException
public EventContext(java.lang.String sourceKey, java.lang.String sourceType, javax.naming.Context context, java.lang.String jmsDestName, int jmsDestType, boolean bTransactedJMSSession) 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
protected void initTopicPublisher() throws javax.naming.NamingException, EventContextException
protected void initQueueSender() throws javax.naming.NamingException, EventContextException
public void close()
protected void closeTopicResources()
protected void closeQueueResources()
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 setJMSQueue(javax.jms.Queue queue)
protected void setContext(javax.naming.Context context)
public javax.naming.Context getContext()
public javax.jms.Topic getJMSTopic()
public javax.jms.Queue getJMSQueue()
public void reinitialize() throws javax.naming.NamingException, EventContextException
public java.lang.String toString()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |