public enum ClassLoaderUsage extends java.lang.Enum<ClassLoaderUsage>
| Enum Constant and Description |
|---|
NON_SHARED
Each activity instance will be loaded by its own classloader and is
therefore a singleton.
|
PLATFORM
The classloader of the AristaFlow platform will be used.
|
SHARE_ACTIVITY_INSTANCES
A classloader will be used for all instances of the very same activity executed on the same
runtime manager independent from process instances and templates but separated between system
and non-system component.
|
SHARE_EXECUTABLE_COMPONENT
A classloader will be used for all activities having the same executable component name
(
AbstractActivity.getExecutableComponentName()) and system component
(AbstractActivity.getSystemComponent()). |
SHARE_IMPLEMENTATION_CLASS
A classloader will be used for all activities having the same implementation class
(
AbstractActivity.getImplementationClass()) and system component
(AbstractActivity.getSystemComponent()). |
SHARE_RUNTIME_MANAGER
The classloader for the runtime manager will be used and thus all classes
will be shared among all activities.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getCode()
Returns a byte code representing this classloader usage.
|
static ClassLoaderUsage |
valueOf(byte code)
Returns the classloader usage for the designated code or
null
if the code is not recognised. |
static ClassLoaderUsage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClassLoaderUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassLoaderUsage PLATFORM
public static final ClassLoaderUsage SHARE_RUNTIME_MANAGER
public static final ClassLoaderUsage SHARE_ACTIVITY_INSTANCES
AbstractActivity.getExecutableComponentName()), configuration name
(AbstractActivity.getConfigurationName()), operation name
(AbstractActivity.getOperationName()), activity name
(AbstractActivity.getActivityName()) and system component
(AbstractActivity.getSystemComponent()). ExecutableComponent needs to implement this by providing the information based
on the data of the EBPInstanceReference. For
instance it can multiplex on the process instance ID or other data from the process model.public static final ClassLoaderUsage NON_SHARED
public static final ClassLoaderUsage SHARE_EXECUTABLE_COMPONENT
AbstractActivity.getExecutableComponentName()) and system component
(AbstractActivity.getSystemComponent()). See SHARE_ACTIVITY_INSTANCES for
details on how to control singleton behaviour.public static final ClassLoaderUsage SHARE_IMPLEMENTATION_CLASS
AbstractActivity.getImplementationClass()) and system component
(AbstractActivity.getSystemComponent()). See SHARE_ACTIVITY_INSTANCES for
details on how to control singleton behaviour.public static ClassLoaderUsage[] values()
for (ClassLoaderUsage c : ClassLoaderUsage.values()) System.out.println(c);
public static ClassLoaderUsage valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte getCode()
public static ClassLoaderUsage valueOf(byte code)
null
if the code is not recognised.code - The code for which to find the classloader usage.