Class SpringNamespaceHandler.SpringBeanFactoryBuilder

java.lang.Object
com.oracle.coherence.spring.SpringNamespaceHandler.SpringBeanFactoryBuilder
All Implemented Interfaces:
com.tangosol.coherence.config.builder.ParameterizedBuilder<org.springframework.beans.factory.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<org.springframework.beans.factory.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 Classes
    Modifier and Type
    Class
    Description
    class 
    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

    Constructors
    Constructor
    Description
    SpringBeanFactoryBuilder(com.tangosol.util.ResourceRegistry registry, com.tangosol.config.expression.ExpressionParser exprParser)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.tangosol.config.expression.Expression<String>
    Return an Expression for the BeanFactory URI.
    com.tangosol.config.expression.Expression<String>
    Return an Expression used to determine the name of the BeanFactory realized by this builder.
    org.springframework.beans.factory.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 the Expression for the BeanFactory URI.
    void
    setFactoryName(com.tangosol.config.expression.Expression<String> exprFactoryName)
    Set the Expression used to determine the name of the BeanFactory realized by this builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 org.springframework.beans.factory.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<org.springframework.beans.factory.BeanFactory>