Class SpringBeanAccessor
- java.lang.Object
-
- org.bonitasoft.engine.service.impl.SpringBeanAccessor
-
- Direct Known Subclasses:
PlatformBeanAccessor,TenantBeanAccessor
public abstract class SpringBeanAccessor extends java.lang.ObjectSpring bean accessor that get its configuration from configuration file in classpath and in database- Author:
- Charles Souillard
-
-
Constructor Summary
Constructors Constructor Description SpringBeanAccessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BonitaSpringContextcreateContext()voiddestroy()protected abstract java.util.List<org.bonitasoft.platform.configuration.model.BonitaConfiguration>getConfigurationFromDatabase()org.springframework.context.ApplicationContextgetContext()protected abstract java.util.PropertiesgetProperties()<T> TgetService(java.lang.Class<T> serviceClass)protected abstract java.util.List<java.lang.String>getSpringFileFromClassPath(boolean cluster)protected booleanisCluster()
-
-
-
Method Detail
-
getService
public <T> T getService(java.lang.Class<T> serviceClass)
-
getContext
public org.springframework.context.ApplicationContext getContext()
-
createContext
protected abstract BonitaSpringContext createContext()
-
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
-
-