Class SpringBeanAccessor

  • Direct Known Subclasses:
    PlatformBeanAccessor, TenantBeanAccessor

    public abstract class SpringBeanAccessor
    extends java.lang.Object
    Spring bean accessor that get its configuration from configuration file in classpath and in database
    Author:
    Charles Souillard
    • Constructor Detail

      • SpringBeanAccessor

        public SpringBeanAccessor()
    • Method Detail

      • getService

        public <T> T getService​(java.lang.Class<T> serviceClass)
      • getContext

        public org.springframework.context.ApplicationContext getContext()
      • destroy

        public void destroy()
      • getProperties

        protected abstract java.util.Properties getProperties()
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getConfigurationFromDatabase

        protected abstract java.util.List<org.bonitasoft.platform.configuration.model.BonitaConfiguration> getConfigurationFromDatabase()
                                                                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getSpringFileFromClassPath

        protected abstract java.util.List<java.lang.String> getSpringFileFromClassPath​(boolean cluster)
      • isCluster

        protected boolean isCluster()
                             throws java.io.IOException
        Throws:
        java.io.IOException