Package jadex.bridge.service
Enum ServiceScope
- java.lang.Object
- 
- java.lang.Enum<ServiceScope>
- 
- jadex.bridge.service.ServiceScope
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<ServiceScope>
 
 public enum ServiceScope extends java.lang.Enum<ServiceScope> Scopes for service publication (provided) and search (e.g. required).
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description APPLICATIONAvailable in local application, i.e.APPLICATION_GLOBALGlobal application scope.APPLICATION_NETWORKApplication network scope (any platform with which a secret is shared and application tag must be shared).COMPONENTAvailable in component and all direct and indirect subcomponents.COMPONENT_ONLYAvailable in component itself.DEFAULTMarker for default scope to be replaced automatically according to context; for required services (search scope): the default scope is 'platform' for system services and 'application' for non-system services, for provided services (publication scope): the default scope is always platform.GLOBALGlobal scope (any reachable platform including those with unrestricted services).NETWORKNetwork scope (any platform with which a secret is shared).NONENone component scope (nothing will be searched, forces required service creation).PARENTAvailable in immediate parent and all direct and indirect subcomponents.PLATFORMAvailable in all components on the local platform.
 - 
Field SummaryFields Modifier and Type Field Description static java.util.Set<ServiceScope>GLOBAL_SCOPESThe global scopes.static java.util.Set<ServiceScope>LOCAL_SCOPESThe scopes local to a platform.static java.util.Set<ServiceScope>NETWORK_SCOPESThe network scopes.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceScopegetEnum(java.lang.String val)Get the enum per string.booleanisGlobal()Check if the scope is global.booleanisLocal()Check if the scope not remote.booleanisNetwork()Check if the scope is a network scope.static ServiceScopevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ServiceScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
DEFAULTpublic static final ServiceScope DEFAULT Marker for default scope to be replaced automatically according to context; for required services (search scope): the default scope is 'platform' for system services and 'application' for non-system services, for provided services (publication scope): the default scope is always platform.
 - 
NONEpublic static final ServiceScope NONE None component scope (nothing will be searched, forces required service creation).
 - 
PARENTpublic static final ServiceScope PARENT Available in immediate parent and all direct and indirect subcomponents.
 - 
COMPONENT_ONLYpublic static final ServiceScope COMPONENT_ONLY Available in component itself.
 - 
COMPONENTpublic static final ServiceScope COMPONENT Available in component and all direct and indirect subcomponents.
 - 
APPLICATIONpublic static final ServiceScope APPLICATION Available in local application, i.e. second level component plus direct and indirect subcomponents.
 - 
PLATFORMpublic static final ServiceScope PLATFORM Available in all components on the local platform.
 - 
APPLICATION_NETWORKpublic static final ServiceScope APPLICATION_NETWORK Application network scope (any platform with which a secret is shared and application tag must be shared).
 - 
NETWORKpublic static final ServiceScope NETWORK Network scope (any platform with which a secret is shared).
 - 
APPLICATION_GLOBALpublic static final ServiceScope APPLICATION_GLOBAL Global application scope.
 - 
GLOBALpublic static final ServiceScope GLOBAL Global scope (any reachable platform including those with unrestricted services).
 
- 
 - 
Field Detail- 
LOCAL_SCOPESpublic static final java.util.Set<ServiceScope> LOCAL_SCOPES The scopes local to a platform.
 - 
GLOBAL_SCOPESpublic static final java.util.Set<ServiceScope> GLOBAL_SCOPES The global scopes.
 - 
NETWORK_SCOPESpublic static final java.util.Set<ServiceScope> NETWORK_SCOPES The network scopes.
 
- 
 - 
Method Detail- 
valuespublic static ServiceScope[] 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 (ServiceScope c : ServiceScope.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static ServiceScope valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
isLocalpublic boolean isLocal() Check if the scope not remote.- Returns:
- True, scope on the local platform.
 
 - 
isGlobalpublic boolean isGlobal() Check if the scope is global.
 - 
isNetworkpublic boolean isNetwork() Check if the scope is a network scope.
 - 
getEnumpublic static ServiceScope getEnum(java.lang.String val) Get the enum per string.- Parameters:
- val- The value.
- Returns:
- The enum or null.
 
 
- 
 
-