|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jms.support.JmsAccessor
public abstract class JmsAccessor
Base class for JmsTemplate and other JMS-accessing gateway helpers, defining common properties like the ConnectionFactory.
Not intended to be used directly. See JmsTemplate.
Field Summary | |
---|---|
protected ConnectionFactory |
connectionFactory
|
protected Log |
logger
|
Constructor Summary | |
---|---|
JmsAccessor()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
protected JmsException |
convertJmsAccessException(JMSException ex)
Convert the specified checked JMSException to
a Spring runtime JmsException
equivalent. |
ConnectionFactory |
getConnectionFactory()
Return the connection factory used for obtaining JMS connections. |
void |
setConnectionFactory(ConnectionFactory connectionFactory)
Set the connection factory used for obtaining JMS connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
protected ConnectionFactory connectionFactory
Constructor Detail |
---|
public JmsAccessor()
Method Detail |
---|
public void setConnectionFactory(ConnectionFactory connectionFactory)
public ConnectionFactory getConnectionFactory()
public void afterPropertiesSet()
InitializingBean
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet
in interface InitializingBean
protected JmsException convertJmsAccessException(JMSException ex)
JMSException
to
a Spring runtime JmsException
equivalent.
Default implementation delegates to JmsUtils.
ex
- the original checked JMSException to convert
ex
JmsUtils.convertJmsAccessException(javax.jms.JMSException)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |