Package jadex.requiredservice
Class RequiredServiceInfo
java.lang.Object
jadex.requiredservice.RequiredServiceInfo
Struct for information about a required service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RequiredServiceBindingThe default binding.protected List<jadex.common.UnparsedExpression>The list of interceptors.static final intConstant for multiplicity many.protected intThe max number of services.protected intThe min number of services.protected StringThe component internal service name.static final jadex.providedservice.ServiceScopeDeprecated.static final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadstatic final jadex.providedservice.ServiceScopeDeprecated.UseServiceScopeinsteadprotected Collection<String>The service tags to search for.protected jadex.common.ClassInfoThe type.static final intConstant for multiplicity undefined. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new service info.RequiredServiceInfo(Class<?> type) Create a new service info.RequiredServiceInfo(String name, jadex.common.ClassInfo type, int min, int max, RequiredServiceBinding binding, Collection<String> tags) Create a new service info.RequiredServiceInfo(String name, Class<?> type) Create a new service info.RequiredServiceInfo(String name, Class<?> type, int min, int max, RequiredServiceBinding binding, Collection<String> tags) Create a new service info.RequiredServiceInfo(String name, Class<?> type, jadex.providedservice.ServiceScope scope) Create a new service info. -
Method Summary
Modifier and TypeMethodDescriptionaddInterceptor(jadex.common.UnparsedExpression interceptor) Add an interceptor.Get the binding.jadex.common.UnparsedExpression[]Get the interceptors.intgetMax()Get the max number of services.intgetMin()Get the minimum number of services.getName()Get the name.getTags()Get the tags.jadex.common.ClassInfogetType()Get the type.removeInterceptor(jadex.common.UnparsedExpression interceptor) Remove an interceptor.setDefaultBinding(RequiredServiceBinding binding) Set the binding.setMax(int max) Set the max number of services.setMin(int min) Set the min number of services.Set the name.setTags(Collection<String> tags) Set the tags.setType(jadex.common.ClassInfo type) Set the type.
-
Field Details
-
SCOPE_NONE
public static final jadex.providedservice.ServiceScope SCOPE_NONEDeprecated.UseServiceScopeinstead -
SCOPE_PARENT
public static final jadex.providedservice.ServiceScope SCOPE_PARENTDeprecated.UseServiceScopeinstead -
SCOPE_COMPONENT_ONLY
public static final jadex.providedservice.ServiceScope SCOPE_COMPONENT_ONLYDeprecated.UseServiceScopeinstead -
SCOPE_COMPONENT
public static final jadex.providedservice.ServiceScope SCOPE_COMPONENTDeprecated.UseServiceScopeinstead -
SCOPE_APPLICATION
public static final jadex.providedservice.ServiceScope SCOPE_APPLICATIONDeprecated.UseServiceScopeinstead -
SCOPE_PLATFORM
public static final jadex.providedservice.ServiceScope SCOPE_PLATFORMDeprecated.UseServiceScopeinstead -
SCOPE_APPLICATION_NETWORK
public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION_NETWORKDeprecated.UseServiceScopeinstead -
SCOPE_NETWORK
public static final jadex.providedservice.ServiceScope SCOPE_NETWORKDeprecated.UseServiceScopeinstead -
SCOPE_APPLICATION_GLOBAL
public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION_GLOBALDeprecated.UseServiceScopeinstead -
SCOPE_GLOBAL
public static final jadex.providedservice.ServiceScope SCOPE_GLOBALDeprecated.UseServiceScopeinstead -
MANY
public static final int MANYConstant for multiplicity many.- See Also:
-
UNDEFINED
public static final int UNDEFINEDConstant for multiplicity undefined.- See Also:
-
name
The component internal service name. -
type
protected jadex.common.ClassInfo typeThe type. -
tags
The service tags to search for. -
min
protected int minThe min number of services. -
max
protected int maxThe max number of services. -
binding
The default binding. -
interceptors
The list of interceptors.
-
-
Constructor Details
-
RequiredServiceInfo
public RequiredServiceInfo()Create a new service info. -
RequiredServiceInfo
Create a new service info. -
RequiredServiceInfo
Create a new service info. -
RequiredServiceInfo
Create a new service info. -
RequiredServiceInfo
public RequiredServiceInfo(String name, Class<?> type, int min, int max, RequiredServiceBinding binding, Collection<String> tags) Create a new service info. -
RequiredServiceInfo
public RequiredServiceInfo(String name, jadex.common.ClassInfo type, int min, int max, RequiredServiceBinding binding, Collection<String> tags) Create a new service info.
-
-
Method Details
-
getName
Get the name.- Returns:
- the name.
-
setName
Set the name.- Parameters:
name- The name to set.
-
getType
public jadex.common.ClassInfo getType()Get the type.- Returns:
- The type.
-
setType
Set the type.- Parameters:
type- The type to set.
-
getMax
public int getMax()Get the max number of services.- Returns:
- The max number.
-
setMax
Set the max number of services.- Parameters:
max- The max number to set.
-
getMin
public int getMin()Get the minimum number of services.- Returns:
- The min number of services.
-
setMin
Set the min number of services.- Parameters:
min- The min number to set.
-
getDefaultBinding
Get the binding.- Returns:
- the binding.
-
setDefaultBinding
Set the binding.- Parameters:
binding- The binding to set.
-
addInterceptor
Add an interceptor.- Parameters:
interceptor- The interceptor.
-
removeInterceptor
Remove an interceptor.- Parameters:
interceptor- The interceptor.
-
getInterceptors
public jadex.common.UnparsedExpression[] getInterceptors()Get the interceptors.- Returns:
- All interceptors.
-
getTags
Get the tags.- Returns:
- the tags
-
setTags
Set the tags.- Parameters:
tags- The tags to set
-
ServiceScopeinstead