Package jadex.requiredservice
Class RequiredServiceInfo
java.lang.Object
jadex.requiredservice.RequiredServiceInfo
Struct for information about a required service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RequiredServiceBinding
The default binding.protected List
<jadex.common.UnparsedExpression> The list of interceptors.static final int
Constant for multiplicity many.protected int
The max number of services.protected int
The min number of services.protected String
The component internal service name.static final jadex.providedservice.ServiceScope
Deprecated.static final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadstatic final jadex.providedservice.ServiceScope
Deprecated.UseServiceScope
insteadprotected Collection
<String> The service tags to search for.protected jadex.common.ClassInfo
The type.static final int
Constant 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.int
getMax()
Get the max number of services.int
getMin()
Get the minimum number of services.getName()
Get the name.getTags()
Get the tags.jadex.common.ClassInfo
getType()
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.UseServiceScope
instead -
SCOPE_PARENT
public static final jadex.providedservice.ServiceScope SCOPE_PARENTDeprecated.UseServiceScope
instead -
SCOPE_COMPONENT_ONLY
public static final jadex.providedservice.ServiceScope SCOPE_COMPONENT_ONLYDeprecated.UseServiceScope
instead -
SCOPE_COMPONENT
public static final jadex.providedservice.ServiceScope SCOPE_COMPONENTDeprecated.UseServiceScope
instead -
SCOPE_APPLICATION
public static final jadex.providedservice.ServiceScope SCOPE_APPLICATIONDeprecated.UseServiceScope
instead -
SCOPE_PLATFORM
public static final jadex.providedservice.ServiceScope SCOPE_PLATFORMDeprecated.UseServiceScope
instead -
SCOPE_APPLICATION_NETWORK
public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION_NETWORKDeprecated.UseServiceScope
instead -
SCOPE_NETWORK
public static final jadex.providedservice.ServiceScope SCOPE_NETWORKDeprecated.UseServiceScope
instead -
SCOPE_APPLICATION_GLOBAL
public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION_GLOBALDeprecated.UseServiceScope
instead -
SCOPE_GLOBAL
public static final jadex.providedservice.ServiceScope SCOPE_GLOBALDeprecated.UseServiceScope
instead -
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
-
ServiceScope
instead