java.lang.Object | |
↳ | org.springframework.jms.support.destination.BeanFactoryDestinationResolver |
DestinationResolver
implementation based on a Spring BeanFactory
.
Will lookup Spring managed beans identified by bean name,
expecting them to be of type javax.jms.Destination
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new instance of the
BeanFactoryDestinationResolver class. | |||||||||||
Create a new instance of the
BeanFactoryDestinationResolver class. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resolve the given destination name, either as located resource
or as dynamic destination.
| |||||||||||
Callback that supplies the owning factory to a bean instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
| |||||||||||
From interface
org.springframework.jms.support.destination.DestinationResolver
|
Create a new instance of the BeanFactoryDestinationResolver
class.
The BeanFactory to access must be set via setBeanFactory
.
Create a new instance of the BeanFactoryDestinationResolver
class.
Use of this constructor is redundant if this object is being created
by a Spring IoC container, as the supplied BeanFactory
will be
replaced by the BeanFactory
that creates it (c.f. the
BeanFactoryAware
contract). So only use this constructor if you
are using this class outside the context of a Spring IoC container.
beanFactory | the bean factory to be used to lookup javax.jms.Destination Destinatiosn |
---|
Resolve the given destination name, either as located resource or as dynamic destination.
session | the current JMS Session
(may be null if the resolver implementation is able to work without it) |
---|---|
destinationName | the name of the destination |
pubSubDomain | true if the domain is pub-sub, false if P2P |
JMSException |
---|
Callback that supplies the owning factory to a bean instance.
Invoked after the population of normal bean properties
but before an initialization callback such as
afterPropertiesSet()
or a custom init-method.
beanFactory | owning BeanFactory (never null ).
The bean can immediately call methods on the factory. |
---|