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 ofParameterizedBuilder
that "realizes" an instance ofBeanFactory
based on a provided Spring application context uri. Upon realization, theBeanFactory
is registered to theResourceRegistry
provided in the constructor via the value returned bygetFactoryName()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SpringNamespaceHandler.SpringBeanFactoryBuilder.CoherenceApplicationContext
Application 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 anExpression
for theBeanFactory
URI.com.tangosol.config.expression.Expression<String>
getFactoryName()
Return anExpression
used to determine the name of theBeanFactory
realized by this builder.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 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 Detail
-
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 Detail
-
getFactoryName
public com.tangosol.config.expression.Expression<String> 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
public com.tangosol.config.expression.Expression<String> 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>
-
-