public static class SpringNamespaceHandler.SpringBeanFactoryBuilder extends Object implements com.tangosol.coherence.config.builder.ParameterizedBuilder<org.springframework.beans.factory.BeanFactory>, com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
ParameterizedBuilder that "realizes" an instance
of BeanFactory based on a provided Spring application context uri.
Upon realization, the BeanFactory is registered to the ResourceRegistry
provided in the constructor via the value returned by getFactoryName().| Modifier and Type | Class and Description |
|---|---|
class |
SpringNamespaceHandler.SpringBeanFactoryBuilder.CoherenceApplicationContext
Application context implementation that supports Coherence
expression macros within a Spring XML application context file.
|
| Constructor and Description |
|---|
SpringNamespaceHandler.SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry,
com.tangosol.config.expression.ExpressionParser exprParser)
Construct a
SpringNamespaceHandler.SpringBeanFactoryBuilder. |
| Modifier and Type | Method and Description |
|---|---|
com.tangosol.config.expression.Expression<String> |
getApplicationContextUri()
Return an
Expression for the BeanFactory URI. |
com.tangosol.config.expression.Expression<String> |
getFactoryName()
Return an
Expression used to determine the name of the
BeanFactory realized by this builder. |
org.springframework.beans.factory.BeanFactory |
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 |
setApplicationContextUri(com.tangosol.config.expression.Expression<String> exprAppCtxUri)
Set the
Expression for the BeanFactory URI. |
void |
setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)
Set the
Expression used to determine the name of the
BeanFactory realized by this builder. |
public SpringNamespaceHandler.SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry,
com.tangosol.config.expression.ExpressionParser exprParser)
SpringNamespaceHandler.SpringBeanFactoryBuilder.registry - the ResourceRegistry this builder will
use to register the realized BeanFactoryexprParser - the ExpressionParser used to evaluate
an expressionpublic com.tangosol.config.expression.Expression<String> getFactoryName()
Expression used to determine the name of the
BeanFactory realized 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 realized by this builder.exprFactoryName - the Expression for the BeanFactory namepublic com.tangosol.config.expression.Expression<String> getApplicationContextUri()
Expression for the BeanFactory URI.Expression for the BeanFactory URI@Injectable public void setApplicationContextUri(com.tangosol.config.expression.Expression<String> exprAppCtxUri)
Expression for the BeanFactory URI.exprAppCtxUri - the Expression for the BeanFactory URIpublic boolean realizes(Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader)
realizes in interface com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupportpublic org.springframework.beans.factory.BeanFactory realize(com.tangosol.config.expression.ParameterResolver resolver,
ClassLoader loader,
com.tangosol.coherence.config.ParameterList listParameters)
realize in interface com.tangosol.coherence.config.builder.ParameterizedBuilder<org.springframework.beans.factory.BeanFactory>Copyright © 2017. All rights reserved.