DestinationResolver implementation based on a Spring BeanFactory.
Will lookup Spring managed beans identified by bean name,
expecting them to be of type jakarta.jms.Destination.
org.springframework.beans.factory.BeanFactory
| Modifier and Type | Field and Description |
|---|---|
| private BeanFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BeanFactoryDestinationResolver(BeanFactory
the bean factory to be used to lookup beanFactory)DestinationCreate a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public Destination | resolveDestinationName(Session
the current JMS Session
(may be session, String null if the resolver implementation is able to work without it)the name of the destination destinationName, boolean true if the domain is pub-sub, false if P2PImplements org. Resolve the given destination name, either as located resource or as dynamic destination. |
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. Callback that supplies the owning factory to a bean instance. |
| beanFactory | back to summary |
|---|---|
| private BeanFactory beanFactory
| |
| BeanFactoryDestinationResolver | back to summary |
|---|---|
| public BeanFactoryDestinationResolver() Create a new instance of the The BeanFactory to access must be set via
| |
| BeanFactoryDestinationResolver | back to summary |
|---|---|
| public BeanFactoryDestinationResolver(BeanFactory beanFactory) Create a new instance of the Use of this constructor is redundant if this object is being created
by a Spring IoC container, as the supplied
| |
| resolveDestinationName | back to summary |
|---|---|
| public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException Implements org. Doc from org. Resolve the given destination name, either as located resource or as dynamic destination.
| |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. Doc from org. 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
| |