Package com.aquima.interactions.portal
Class ApplicationMode
java.lang.Object
com.aquima.interactions.portal.ApplicationMode
- All Implemented Interfaces:
Serializable
The application mode class defines the several modes of operation an application can run in. Depending on the mode of
operation, certain errors or warnings may be acceptable, while they would be fatal in another mode of operation.
The following three types are defined:
The following three types are defined:
- DEV The development mode is intended to use during the development of an application. This mode of operation ignores all but the fatal errors, and will treat all other errors as warning.
- ACC Deprecated. The acceptance mode is intended to use during the testing of an application, and as such is the most strict mode. This mode of operation will not accept any error or warning.
- PROD The production mode is intended to use during the final deployment of an application. This mode of operation is less strict, as it will accepts warning.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ApplicationMode
Predefined application mode for development.static final ApplicationMode
Predefined application mode for production. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method will compare the object passed to this method with the application mode, and return a boolean indicating whether the object passed exactly identifies the same application mode.This method returns the level of errors that are still acceptable for this mode of operation.getName()
This method returns the name of the application mode.int
hashCode()
toString()
static ApplicationMode
This method will lookup a predefined application mode definition based on the name passed to the method.
-
Field Details
-
DEV
Predefined application mode for development. -
PROD
Predefined application mode for production.
-
-
Method Details
-
valueOf
This method will lookup a predefined application mode definition based on the name passed to the method.- Parameters:
name
- The name of the application mode for which the definition is requested.- Returns:
- The application mode definition corresponding to the specified name.
-
getName
This method returns the name of the application mode.- Returns:
- The name of the application mode.
-
getAcceptableErrorLevel
This method returns the level of errors that are still acceptable for this mode of operation.- Returns:
- The error level that is still acceptable for this mode of operation.
-
hashCode
public int hashCode() -
equals
This method will compare the object passed to this method with the application mode, and return a boolean indicating whether the object passed exactly identifies the same application mode. -
toString
-