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 of
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().-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassApplication context implementation that supports Coherence expression macros within a Spring XML application context file.Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport -
Constructor Summary
ConstructorsConstructorDescriptionSpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry, com.tangosol.config.expression.ExpressionParser exprParser) Construct aSpringNamespaceHandler.SpringBeanFactoryBuilder. -
Method Summary
Modifier and TypeMethodDescriptioncom.tangosol.config.expression.Expression<String>Return anExpressionfor theBeanFactoryURI.com.tangosol.config.expression.Expression<String>Return anExpressionused to determine the name of theBeanFactoryrealized by this builder.realize(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 Details
-
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 Details
-
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
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>
-