Package com.oracle.coherence.spring
Class SpringNamespaceHandler.SpringBeanFactoryBuilder
- java.lang.Object
-
- com.oracle.coherence.spring.SpringNamespaceHandler.SpringBeanFactoryBuilder
-
- All Implemented Interfaces:
com.tangosol.coherence.config.builder.ParameterizedBuilder<BeanFactory>,com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
- Enclosing class:
- SpringNamespaceHandler
public static class SpringNamespaceHandler.SpringBeanFactoryBuilder extends Object implements com.tangosol.coherence.config.builder.ParameterizedBuilder<BeanFactory>, com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
Implementation ofParameterizedBuilderthat "realizes" an instance ofBeanFactorybased on a provided Spring application context uri. Upon realization, theBeanFactoryis registered to theResourceRegistryprovided in the constructor via the value returned bygetFactoryName().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSpringNamespaceHandler.SpringBeanFactoryBuilder.CoherenceApplicationContextApplication context implementation that supports Coherence expression macros within a Spring XML application context file.
-
Constructor Summary
Constructors Constructor Description SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry, com.tangosol.config.expression.ExpressionParser exprParser)Construct aSpringNamespaceHandler.SpringBeanFactoryBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.tangosol.config.expression.Expression<String>getApplicationContextUri()Return anExpressionfor theBeanFactoryURI.com.tangosol.config.expression.Expression<String>getFactoryName()Return anExpressionused to determine the name of theBeanFactoryrealized by this builder.BeanFactoryrealize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)booleanrealizes(Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader)voidsetApplicationContextUri(com.tangosol.config.expression.Expression<String> exprAppCtxUri)Set theExpressionfor theBeanFactoryURI.voidsetFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)Set theExpressionused to determine the name of theBeanFactoryrealized by this builder.
-
-
-
Constructor Detail
-
SpringBeanFactoryBuilder
public SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry, com.tangosol.config.expression.ExpressionParser exprParser)Construct aSpringNamespaceHandler.SpringBeanFactoryBuilder.- Parameters:
registry- theResourceRegistrythis builder will use to register the realizedBeanFactoryexprParser- theExpressionParserused to evaluate an expression
-
-
Method Detail
-
getFactoryName
public com.tangosol.config.expression.Expression<String> getFactoryName()
Return anExpressionused to determine the name of theBeanFactoryrealized by this builder.- Returns:
- an
Expressionfor theBeanFactoryname
-
setFactoryName
@Injectable public void setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)
Set theExpressionused to determine the name of theBeanFactoryrealized by this builder.- Parameters:
exprFactoryName- theExpressionfor theBeanFactoryname
-
getApplicationContextUri
public com.tangosol.config.expression.Expression<String> getApplicationContextUri()
Return anExpressionfor theBeanFactoryURI.- Returns:
- an
Expressionfor theBeanFactoryURI
-
setApplicationContextUri
@Injectable public void setApplicationContextUri(com.tangosol.config.expression.Expression<String> exprAppCtxUri)
Set theExpressionfor theBeanFactoryURI.- Parameters:
exprAppCtxUri- theExpressionfor theBeanFactoryURI
-
realizes
public boolean realizes(Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader)
- Specified by:
realizesin interfacecom.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
-
realize
public BeanFactory realize(com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)
- Specified by:
realizein interfacecom.tangosol.coherence.config.builder.ParameterizedBuilder<BeanFactory>
-
-