Class ServiceAccessorFactory
- java.lang.Object
-
- org.bonitasoft.engine.service.impl.ServiceAccessorFactory
-
public class ServiceAccessorFactory extends java.lang.Object
Main entry point to access services and api implementation of the engineServiceAccessors
andAPIAccessResolver
classes can be overridden in the configuration under the name `serviceAccessors` and `apiAccessResolver`
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceAccessorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description APIAccessResolver
createAPIAccessResolver()
PlatformServiceAccessor
createPlatformServiceAccessor()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.0, usecreateServiceAccessor()
insteadServiceAccessor
createServiceAccessor()
SessionAccessor
createSessionAccessor()
TenantServiceAccessor
createTenantServiceAccessor()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.0, usecreateServiceAccessor()
insteadvoid
destroyAccessors()
static ServiceAccessorFactory
getInstance()
-
-
-
Method Detail
-
getInstance
public static ServiceAccessorFactory getInstance()
-
createServiceAccessor
public ServiceAccessor createServiceAccessor() throws org.bonitasoft.engine.exception.BonitaHomeConfigurationException, java.io.IOException, java.lang.ReflectiveOperationException
- Throws:
org.bonitasoft.engine.exception.BonitaHomeConfigurationException
java.io.IOException
java.lang.ReflectiveOperationException
-
createPlatformServiceAccessor
@Deprecated(forRemoval=true, since="9.0.0") public PlatformServiceAccessor createPlatformServiceAccessor() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, java.io.IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException, java.lang.ReflectiveOperationException
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.0, usecreateServiceAccessor()
instead- Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetException
java.io.IOException
org.bonitasoft.engine.exception.BonitaHomeConfigurationException
java.lang.ReflectiveOperationException
-
createTenantServiceAccessor
@Deprecated(forRemoval=true, since="9.0.0") public TenantServiceAccessor createTenantServiceAccessor() throws SBonitaException, org.bonitasoft.engine.exception.BonitaHomeNotSetException, java.io.IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException, java.lang.ReflectiveOperationException
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.0, usecreateServiceAccessor()
instead- Throws:
SBonitaException
org.bonitasoft.engine.exception.BonitaHomeNotSetException
java.io.IOException
org.bonitasoft.engine.exception.BonitaHomeConfigurationException
java.lang.ReflectiveOperationException
-
createSessionAccessor
public SessionAccessor createSessionAccessor() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, java.io.IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException, java.lang.ReflectiveOperationException
- Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetException
java.io.IOException
org.bonitasoft.engine.exception.BonitaHomeConfigurationException
java.lang.ReflectiveOperationException
-
createAPIAccessResolver
public APIAccessResolver createAPIAccessResolver() throws java.io.IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException, java.lang.ReflectiveOperationException
- Throws:
java.io.IOException
org.bonitasoft.engine.exception.BonitaHomeConfigurationException
java.lang.ReflectiveOperationException
-
destroyAccessors
public void destroyAccessors()
-
-