public enum DelegateExpressionFieldInjectionMode extends Enum<DelegateExpressionFieldInjectionMode>
Enum Constant and Description |
---|
COMPATIBILITY
This is the pre version 5.21 mode: field expressions are allowed and the
only way to inject values.
|
DISABLED
(Advised mode, as it is the safest)
Disables field injection when using delegateExpressions, no field injection will happen.
|
MIXED
Allows injection when using delegateExpressions but will not throw an exception
when the fields are not defined on the delegate.
|
Modifier and Type | Method and Description |
---|---|
static DelegateExpressionFieldInjectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DelegateExpressionFieldInjectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DelegateExpressionFieldInjectionMode COMPATIBILITY
DelegateHelper.getField(org.activiti.engine.delegate.DelegateExecution, String)
method is not possible when using this mode, unless the Expressions are still defined
as members of the delegate (otherwise an exception will be thrown). In that case, they
should not be used, but rather the DelegateHelper methods should be used.public static final DelegateExpressionFieldInjectionMode MIXED
public static final DelegateExpressionFieldInjectionMode DISABLED
public static DelegateExpressionFieldInjectionMode[] values()
for (DelegateExpressionFieldInjectionMode c : DelegateExpressionFieldInjectionMode.values()) System.out.println(c);
public static DelegateExpressionFieldInjectionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Alfresco. All rights reserved.