Package org.kie.api.runtime.manager
Interface RuntimeEnvironment
-
public interface RuntimeEnvironmentDefinition of the runtime environment that will be used by instance ofRuntimeManager.RuntimeEnvironmentdelivers all information to the runtime manager to be able to properly configure and bootstrap the manager and then runtime engine instances.
It shall be considered as template of the configuration used by the manager that is read only and shall not be changed onceRuntimeManagerhas been created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the environment allowing to close all depending components such as ksession factories, etcClassLoadergetClassLoader()KieSessionConfigurationgetConfiguration()EnvironmentgetEnvironment()KieBasegetKieBase()RegisterableItemsFactorygetRegisterableItemsFactory()UserGroupCallbackgetUserGroupCallback()UserInfogetUserInfo()booleanusePersistence()
-
-
-
Method Detail
-
getKieBase
KieBase getKieBase()
- Returns:
KieBasethat shall be used by the manager
-
getEnvironment
Environment getEnvironment()
- Returns:
- environment that shall be used to create instances of
KieSession
-
getConfiguration
KieSessionConfiguration getConfiguration()
- Returns:
- KieSession configuration that shall be used to create instances of
KieSession
-
usePersistence
boolean usePersistence()
- Returns:
- indicates if persistence shall be used for the KieSession instances
-
getRegisterableItemsFactory
RegisterableItemsFactory getRegisterableItemsFactory()
- Returns:
- concrete implementation of
RegisterableItemsFactoryto obtain handlers and listeners that shall be registered on instances ofKieSession
-
getUserGroupCallback
UserGroupCallback getUserGroupCallback()
- Returns:
- concrete implementation of
UserGroupCallbackthat shall be registered on instances ofTaskServicefor managing users and groups.
-
getUserInfo
UserInfo getUserInfo()
- Returns:
- concrete implementation of
UserInfothat shall be registered on instances ofTaskServicefor managing user info.
-
getClassLoader
ClassLoader getClassLoader()
- Returns:
- custom class loader that shall be used by the process engine and task service instances
-
close
void close()
Closes the environment allowing to close all depending components such as ksession factories, etc
-
-