Package com.sodius.mdw.server.services
Enum ServiceKind
- java.lang.Object
-
- java.lang.Enum<ServiceKind>
-
- com.sodius.mdw.server.services.ServiceKind
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceKind>
public enum ServiceKind extends Enum<ServiceKind>
Determines the type of a service.- Since:
- 2.3.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RULESET
public static final ServiceKind RULESET
A service implemented with a Ruleset, declared with a 'rule' element in the service extension. Only one ruleset service can be executed at a time on the server.
-
OPERATION
public static final ServiceKind OPERATION
A service implemented with an Operation, declared with an 'operation' element in the service extension. Operation services are executed asynchronously and in parallel on the server.
-
-
Method Detail
-
values
public static ServiceKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServiceKind c : ServiceKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-