BeanFactoryConnectionFactoryLookup
instead.@Deprecated public class BeanFactoryConnectionFactoryLookup extends Object implements ConnectionFactoryLookup, BeanFactoryAware
ConnectionFactoryLookup
implementation based on a Spring BeanFactory
.
Will lookup Spring managed beans identified by bean name, expecting them to be of type ConnectionFactory
.
BeanFactory
Constructor and Description |
---|
BeanFactoryConnectionFactoryLookup()
Deprecated.
Creates a new
BeanFactoryConnectionFactoryLookup instance. |
BeanFactoryConnectionFactoryLookup(BeanFactory beanFactory)
Deprecated.
Create a new instance of the
BeanFactoryConnectionFactoryLookup class. |
Modifier and Type | Method and Description |
---|---|
ConnectionFactory |
getConnectionFactory(String connectionFactoryName)
Deprecated.
Retrieve the
ConnectionFactory identified by the given name. |
void |
setBeanFactory(BeanFactory beanFactory)
Deprecated.
|
public BeanFactoryConnectionFactoryLookup()
BeanFactoryConnectionFactoryLookup
instance.
The BeanFactory
to access must be set via setBeanFactory
.
public BeanFactoryConnectionFactoryLookup(BeanFactory beanFactory)
BeanFactoryConnectionFactoryLookup
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 (see 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 ConnectionFactories
.public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
public ConnectionFactory getConnectionFactory(String connectionFactoryName) throws ConnectionFactoryLookupFailureException
ConnectionFactoryLookup
ConnectionFactory
identified by the given name.getConnectionFactory
in interface ConnectionFactoryLookup
connectionFactoryName
- the name of the ConnectionFactory
.ConnectionFactory
(never null).ConnectionFactoryLookupFailureException
- if the lookup failed.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.