public enum ExtensionResultStatusType extends Enum<ExtensionResultStatusType>
| Enum Constant and Description |
|---|
HANDLED
In short, this value should only be returned from
ExtensionManagers and not from ExtensionHandlers. |
HANDLED_CONTINUE
The extension was handled by the
ExtensionHandler and it recommends continuing with additional
ExtensionHandlers (if more are available). |
HANDLED_STOP
An
ExtensionHandler has handled this and it recommends that the ExtensionManager should not invoke
any more ExtensionHandlers that it may have to execute |
NOT_HANDLED
This was not handled by the
ExtensionHandler. |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionResultStatusType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExtensionResultStatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtensionResultStatusType HANDLED
In short, this value should only be returned from ExtensionManagers and not from ExtensionHandlers.
When you are returning results from an ExtensionHandler then it is less ambiguous to ExtensionManagers
to instead return HANDLED_CONTINUE or
HANDLED_CONTINUE instead. However, when checking the result of invoking an
ExtensionManager to see if it was handled by ANY ExtensionHandler then it makes sense
to return this enum instead
public static final ExtensionResultStatusType HANDLED_CONTINUE
ExtensionHandler and it recommends continuing with additional
ExtensionHandlers (if more are available).public static final ExtensionResultStatusType HANDLED_STOP
ExtensionHandler has handled this and it recommends that the ExtensionManager should not invoke
any more ExtensionHandlers that it may have to executepublic static final ExtensionResultStatusType NOT_HANDLED
ExtensionHandler. In the context of the result of an ExtensionManager,
this indicates that it was not executed by any of the registered ExtensionHandlers, or that none were
registered in the first placepublic static ExtensionResultStatusType[] values()
for (ExtensionResultStatusType c : ExtensionResultStatusType.values()) System.out.println(c);
public static ExtensionResultStatusType 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 © 2018. All rights reserved.