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().
  • Constructor Details

    • SpringBeanFactoryBuilder

      public SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry, com.tangosol.config.expression.ExpressionParser exprParser)
      Parameters:
      registry - the ResourceRegistry this builder will use to register the realized BeanFactory
      exprParser - the ExpressionParser used to evaluate an expression
  • Method Details

    • getFactoryName

      public com.tangosol.config.expression.Expression<String> getFactoryName()
      Return an Expression used to determine the name of the BeanFactory realized by this builder.
      Returns:
      an Expression for the BeanFactory name
    • setFactoryName

      @Injectable public void setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)
      Set the Expression used to determine the name of the BeanFactory realized by this builder.
      Parameters:
      exprFactoryName - the Expression for the BeanFactory name
    • getApplicationContextUri

      public com.tangosol.config.expression.Expression<String> getApplicationContextUri()
      Return an Expression for the BeanFactory URI.
      Returns:
      an Expression for the BeanFactory URI
    • setApplicationContextUri

      @Injectable public void setApplicationContextUri(com.tangosol.config.expression.Expression<String> exprAppCtxUri)
      Set the Expression for the BeanFactory URI.
      Parameters:
      exprAppCtxUri - the Expression for the BeanFactory URI
    • realizes

      public boolean realizes(Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, ClassLoader loader)
      Specified by:
      realizes in interface com.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 interface com.tangosol.coherence.config.builder.ParameterizedBuilder<BeanFactory>