public static class SpringNamespaceHandler.SpringBeanBuilder extends Object implements com.tangosol.coherence.config.builder.ParameterizedBuilder<Object>, com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
ParameterizedBuilder that "realizes" a named
bean from a Spring BeanFactory. The BeanFactory is
obtained via the following:
BeanFactory is looked up in the constructor
provided ResourceRegistry via the factory name
indicated by getFactoryName()BeanFactory is not present in the registry,
a SpringNamespaceHandler.SpringBeanFactoryBuilder via the same name will
be looked up in the registry, and this builder will realize
an instance of the BeanFactory| Constructor and Description |
|---|
SpringNamespaceHandler.SpringBeanBuilder(com.tangosol.util.ResourceRegistry registry)
Construct a
SpringNamespaceHandler.SpringBeanBuilder. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.beans.factory.BeanFactory |
ensureBeanFactory(com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader)
Ensure the
BeanFactory used by this builder to provide the bean indicated
via getBeanName(). |
com.tangosol.config.expression.Expression<String> |
getBeanName()
Return an
Expression used to determine the name of the
bean provided by this builder. |
com.tangosol.config.expression.Expression<String> |
getFactoryName()
Return an
Expression used to determine the name of the
BeanFactory used by this builder. |
com.tangosol.coherence.config.ParameterList |
getParameterList()
Return the
ParameterList containing optional properties
to inject into the realized bean. |
Object |
realize(com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader,
com.tangosol.coherence.config.ParameterList listParameters) |
boolean |
realizes(Class<?> clzClass,
com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader) |
void |
setBeanName(com.tangosol.config.expression.Expression<String> exprBeanName)
Set the
Expression used to determine the name of the
bean provided by this builder. |
void |
setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)
Set the
Expression used to determine the name of the
BeanFactory used by this builder. |
void |
setParameterList(com.tangosol.coherence.config.ParameterList listParameters)
Sets the
ParameterList containing optional properties
to inject into the realized bean. |
public SpringNamespaceHandler.SpringBeanBuilder(com.tangosol.util.ResourceRegistry registry)
SpringNamespaceHandler.SpringBeanBuilder.registry - the ResourceRegistry this builder will use
to locate the BeanFactory that will provide
the requested beanpublic com.tangosol.config.expression.Expression<String> getFactoryName()
Expression used to determine the name of the
BeanFactory used by this builder.Expression for the BeanFactory name@Injectable public void setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)
Expression used to determine the name of the
BeanFactory used by this builder.exprFactoryName - the Expression for the BeanFactory namepublic com.tangosol.config.expression.Expression<String> getBeanName()
Expression used to determine the name of the
bean provided by this builder.Expression for the bean name@Injectable public void setBeanName(com.tangosol.config.expression.Expression<String> exprBeanName)
Expression used to determine the name of the
bean provided by this builder.exprBeanName - an Expression for the bean namepublic com.tangosol.coherence.config.ParameterList getParameterList()
ParameterList containing optional properties
to inject into the realized bean.ParameterListpublic void setParameterList(com.tangosol.coherence.config.ParameterList listParameters)
ParameterList containing optional properties
to inject into the realized bean.listParameters - the ParameterListpublic Object realize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)
realize in interface com.tangosol.coherence.config.builder.ParameterizedBuilder<Object>public boolean realizes(Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader)
realizes in interface com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupportprotected org.springframework.beans.factory.BeanFactory ensureBeanFactory(com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader)
BeanFactory used by this builder to provide the bean indicated
via getBeanName().resolver - the ParameterResolver to use for resolving parametersloader - the ClassLoader for loading any necessary classesBeanFactory used by this builderCopyright © 2017. All rights reserved.