Enum Class ExtensionResultStatusType
java.lang.Object
java.lang.Enum<ExtensionResultStatusType>
org.broadleafcommerce.common.extension.ExtensionResultStatusType
- All Implemented Interfaces:
Serializable,Comparable<ExtensionResultStatusType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn short, this value should only be returned fromExtensionManagers and not fromExtensionHandlers.The extension was handled by theExtensionHandlerand it recommends continuing with additionalExtensionHandlers (if more are available).AnExtensionHandlerhas handled this and it recommends that theExtensionManagershould not invoke any moreExtensionHandlers that it may have to executeThis was not handled by theExtensionHandler. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionResultStatusTypeReturns the enum constant of this class with the specified name.static ExtensionResultStatusType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HANDLED
In short, this value should only be returned from
ExtensionManagers and not fromExtensionHandlers.When you are returning results from an
ExtensionHandlerthen it is less ambiguous toExtensionManagers to instead returnHANDLED_CONTINUEorHANDLED_CONTINUEinstead. However, when checking the result of invoking anExtensionManagerto see if it was handled by ANYExtensionHandlerthen it makes sense to return this enum instead -
HANDLED_CONTINUE
The extension was handled by theExtensionHandlerand it recommends continuing with additionalExtensionHandlers (if more are available). -
HANDLED_STOP
AnExtensionHandlerhas handled this and it recommends that theExtensionManagershould not invoke any moreExtensionHandlers that it may have to execute -
NOT_HANDLED
This was not handled by theExtensionHandler. In the context of the result of anExtensionManager, this indicates that it was not executed by any of the registeredExtensionHandlers, or that none were registered in the first place
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-