com.silverpeas.notification.jms.access
Class JMSObjectDecorator<T>

java.lang.Object
  extended by com.silverpeas.notification.jms.access.JMSObjectDecorator<T>
Type Parameters:
T - the type of the JMS object this decorator works on.
Direct Known Subclasses:
SilverpeasTopicPublisher

public abstract class JMSObjectDecorator<T>
extends Object

A decorator of JMS objects to provide to them, as additional attribute, the JMS session in which they are involved.


Constructor Summary
JMSObjectDecorator()
           
 
Method Summary
protected  T getDecoratedObject()
          Gets the JMS object decorated by this.
 javax.jms.Session getSession()
          Gets the JMS session within which this object is living.
protected  void setDecoratedObject(T object)
          Sets the JMS object to decorate.
 void setSession(javax.jms.Session session)
          Sets the session from which this JMS object is created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSObjectDecorator

public JMSObjectDecorator()
Method Detail

setSession

public void setSession(javax.jms.Session session)
Sets the session from which this JMS object is created.

Parameters:
session - the JMS session to set.

getSession

public javax.jms.Session getSession()
Gets the JMS session within which this object is living.

Returns:
the JMS session.

getDecoratedObject

protected T getDecoratedObject()
Gets the JMS object decorated by this.

Returns:
the decorated JMS object.

setDecoratedObject

protected void setDecoratedObject(T object)
Sets the JMS object to decorate.

Parameters:
object - the JMS object to decorate.


Copyright © 2016 Silverpeas. All Rights Reserved.