spring-framework / org.springframework.jms.support.destination / BeanFactoryDestinationResolver

BeanFactoryDestinationResolver

open class BeanFactoryDestinationResolver : DestinationResolver, BeanFactoryAware

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.

Author
Juergen Hoeller

Since
2.5

See Also
org.springframework.beans.factory.BeanFactory

Constructors

<init>

BeanFactoryDestinationResolver()

Create a new instance of the BeanFactoryDestinationResolver class.

The BeanFactory to access must be set via setBeanFactory.

BeanFactoryDestinationResolver(beanFactory: BeanFactory)

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.

Functions

resolveDestinationName

open fun resolveDestinationName(session: Session, destinationName: String, pubSubDomain: Boolean): Destination

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit