ConnectionFactoryLookup implementation based on a
Spring BeanFactory.
Will lookup Spring managed beans identified by bean name,
expecting them to be of type ConnectionFactory.
BeanFactory
| Modifier and Type | Field and Description |
|---|---|
| private BeanFactory |
| Access | Constructor and Description |
|---|---|
| public | BeanFactoryConnectionFactoryLookup()
Create a new instance of the |
| public | BeanFactoryConnectionFactoryLookup(BeanFactory
the bean factory to be used to lookup beanFactory)ConnectionFactoriesCreate a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public ConnectionFactory | getConnectionFactory(String
the name of the connectionFactoryName)ConnectionFactoryImplements org. ConnectionFactory identified by the given name.
|
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. |
| beanFactory | back to summary |
|---|---|
| private BeanFactory beanFactory
| |
| BeanFactoryConnectionFactoryLookup | back to summary |
|---|---|
| public BeanFactoryConnectionFactoryLookup() Create a new instance of the The BeanFactory to access must be set via
| |
| BeanFactoryConnectionFactoryLookup | back to summary |
|---|---|
| public BeanFactoryConnectionFactoryLookup(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
| |
| getConnectionFactory | back to summary |
|---|---|
| public ConnectionFactory getConnectionFactory(String connectionFactoryName) throws ConnectionFactoryLookupFailureException Implements org. Doc from org. Retrieve the
| |
| 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
| |