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
Modifier and TypeClassDescriptionclass
Application 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
ConstructorDescriptionSpringBeanFactoryBuilder
(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 anExpression
for theBeanFactory
URI.com.tangosol.config.expression.Expression<String>
Return anExpression
used to determine the name of theBeanFactory
realized by this builder.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 theExpression
for theBeanFactory
URI.void
setFactoryName
(com.tangosol.config.expression.Expression<String> exprFactoryName) Set theExpression
used to determine the name of theBeanFactory
realized by this builder.
-
Constructor Details
-
SpringBeanFactoryBuilder
public SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry, com.tangosol.config.expression.ExpressionParser exprParser) Construct aSpringNamespaceHandler.SpringBeanFactoryBuilder
.- Parameters:
registry
- theResourceRegistry
this builder will use to register the realizedBeanFactory
exprParser
- theExpressionParser
used to evaluate an expression
-
-
Method Details
-
getFactoryName
Return anExpression
used to determine the name of theBeanFactory
realized by this builder.- Returns:
- an
Expression
for theBeanFactory
name
-
setFactoryName
@Injectable public void setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName) Set theExpression
used to determine the name of theBeanFactory
realized by this builder.- Parameters:
exprFactoryName
- theExpression
for theBeanFactory
name
-
getApplicationContextUri
Return anExpression
for theBeanFactory
URI.- Returns:
- an
Expression
for theBeanFactory
URI
-
setApplicationContextUri
@Injectable public void setApplicationContextUri(com.tangosol.config.expression.Expression<String> exprAppCtxUri) Set theExpression
for theBeanFactory
URI.- Parameters:
exprAppCtxUri
- theExpression
for theBeanFactory
URI
-
realizes
public boolean realizes(Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader) - Specified by:
realizes
in 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:
realize
in interfacecom.tangosol.coherence.config.builder.ParameterizedBuilder<BeanFactory>
-