Class 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 java.lang.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 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.
      • Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder

        com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.tangosol.config.expression.Expression<java.lang.String> getApplicationContextUri()
      Return an Expression for the BeanFactory URI.
      com.tangosol.config.expression.Expression<java.lang.String> getFactoryName()
      Return an Expression used to determine the name of the BeanFactory realized by this builder.
      BeanFactory realize​(com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader, com.tangosol.coherence.config.ParameterList listParameters)
      boolean realizes​(java.lang.Class<?> clzClass, com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader)
      void setApplicationContextUri​(com.tangosol.config.expression.Expression<java.lang.String> exprAppCtxUri)
      Set the Expression for the BeanFactory URI.
      void setFactoryName​(com.tangosol.config.expression.Expression<java.lang.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 Detail

      • 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 Detail

      • getFactoryName

        public com.tangosol.config.expression.Expression<java.lang.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<java.lang.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<java.lang.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<java.lang.String> exprAppCtxUri)
        Set the Expression for the BeanFactory URI.
        Parameters:
        exprAppCtxUri - the Expression for the BeanFactory URI
      • realizes

        public boolean realizes​(java.lang.Class<?> clzClass,
                                com.tangosol.config.expression.ParameterResolver resolver,
                                java.lang.ClassLoader loader)
        Specified by:
        realizes in interface com.tangosol.coherence.config.builder.ParameterizedBuilder.ReflectionSupport
      • realize

        public BeanFactory realize​(com.tangosol.config.expression.ParameterResolver resolver,
                                   java.lang.ClassLoader loader,
                                   com.tangosol.coherence.config.ParameterList listParameters)
        Specified by:
        realize in interface com.tangosol.coherence.config.builder.ParameterizedBuilder<BeanFactory>