Package jadex.bridge.service
Class RequiredServiceInfo
- java.lang.Object
-
- jadex.bridge.service.RequiredServiceInfo
-
public class RequiredServiceInfo extends java.lang.ObjectStruct for information about a required service.
-
-
Field Summary
Fields Modifier and Type Field Description protected RequiredServiceBindingbindingThe default binding.protected java.util.List<UnparsedExpression>interceptorsThe list of interceptors.static intMANYConstant for multiplicity many.protected intmaxThe max number of services.protected intminThe min number of services.protected java.lang.StringnameThe component internal service name.protected java.util.List<NFRPropertyInfo>nfpropertiesThe nf props.static ServiceScopeSCOPE_APPLICATIONDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_APPLICATION_GLOBALDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_APPLICATION_NETWORKDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_COMPONENTDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_COMPONENT_ONLYDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_GLOBALDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_NETWORKDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_NONEDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_PARENTDeprecated.UseServiceScopeinsteadstatic ServiceScopeSCOPE_PLATFORMDeprecated.UseServiceScopeinsteadprotected java.util.Collection<java.lang.String>tagsThe service tags to search for.protected ClassInfotypeThe type.static intUNDEFINEDConstant for multiplicity undefined.
-
Constructor Summary
Constructors Constructor Description RequiredServiceInfo()Create a new service info.RequiredServiceInfo(java.lang.Class<?> type)Create a new service info.RequiredServiceInfo(java.lang.String name, ClassInfo type, int min, int max, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)Create a new service info.RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type)Create a new service info.RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, int min, int max, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)Create a new service info.RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, ServiceScope scope)Create a new service info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterceptor(UnparsedExpression interceptor)Add an interceptor.RequiredServiceBindinggetDefaultBinding()Get the binding.UnparsedExpression[]getInterceptors()Get the interceptors.intgetMax()Get the max number of services.intgetMin()Get the minimum number of services.java.lang.StringgetName()Get the name.java.util.List<NFRPropertyInfo>getNFRProperties()Get the nfproperties.java.util.Collection<java.lang.String>getTags()Get the tags.ClassInfogetType()Get the type.voidremoveInterceptor(UnparsedExpression interceptor)Remove an interceptor.voidsetDefaultBinding(RequiredServiceBinding binding)Set the binding.voidsetMax(int max)Set the max number of services.voidsetMin(int min)Set the min number of services.voidsetName(java.lang.String name)Set the name.voidsetNFRProperties(java.util.List<NFRPropertyInfo> nfproperties)Set the nfproperties.voidsetTags(java.util.Collection<java.lang.String> tags)Set the tags.voidsetType(ClassInfo type)Set the type.
-
-
-
Field Detail
-
SCOPE_NONE
public static final ServiceScope SCOPE_NONE
Deprecated.UseServiceScopeinstead
-
SCOPE_PARENT
public static final ServiceScope SCOPE_PARENT
Deprecated.UseServiceScopeinstead
-
SCOPE_COMPONENT_ONLY
public static final ServiceScope SCOPE_COMPONENT_ONLY
Deprecated.UseServiceScopeinstead
-
SCOPE_COMPONENT
public static final ServiceScope SCOPE_COMPONENT
Deprecated.UseServiceScopeinstead
-
SCOPE_APPLICATION
public static final ServiceScope SCOPE_APPLICATION
Deprecated.UseServiceScopeinstead
-
SCOPE_PLATFORM
public static final ServiceScope SCOPE_PLATFORM
Deprecated.UseServiceScopeinstead
-
SCOPE_APPLICATION_NETWORK
public static final ServiceScope SCOPE_APPLICATION_NETWORK
Deprecated.UseServiceScopeinstead
-
SCOPE_NETWORK
public static final ServiceScope SCOPE_NETWORK
Deprecated.UseServiceScopeinstead
-
SCOPE_APPLICATION_GLOBAL
public static final ServiceScope SCOPE_APPLICATION_GLOBAL
Deprecated.UseServiceScopeinstead
-
SCOPE_GLOBAL
public static final ServiceScope SCOPE_GLOBAL
Deprecated.UseServiceScopeinstead
-
MANY
public static final int MANY
Constant for multiplicity many.- See Also:
- Constant Field Values
-
UNDEFINED
public static final int UNDEFINED
Constant for multiplicity undefined.- See Also:
- Constant Field Values
-
name
protected java.lang.String name
The component internal service name.
-
type
protected ClassInfo type
The type.
-
tags
protected java.util.Collection<java.lang.String> tags
The service tags to search for.
-
min
protected int min
The min number of services.
-
max
protected int max
The max number of services.
-
binding
protected RequiredServiceBinding binding
The default binding.
-
interceptors
protected java.util.List<UnparsedExpression> interceptors
The list of interceptors.
-
nfproperties
protected java.util.List<NFRPropertyInfo> nfproperties
The nf props. This is not for search but adds NF props
-
-
Constructor Detail
-
RequiredServiceInfo
public RequiredServiceInfo()
Create a new service info.
-
RequiredServiceInfo
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type)Create a new service info.
-
RequiredServiceInfo
public RequiredServiceInfo(java.lang.Class<?> type)
Create a new service info.
-
RequiredServiceInfo
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, ServiceScope scope)Create a new service info.
-
RequiredServiceInfo
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, int min, int max, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)Create a new service info.
-
RequiredServiceInfo
public RequiredServiceInfo(java.lang.String name, ClassInfo type, int min, int max, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)Create a new service info.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- the name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name- The name to set.
-
getType
public ClassInfo getType()
Get the type.- Returns:
- The type.
-
setType
public void setType(ClassInfo type)
Set the type.- Parameters:
type- The type to set.
-
getMax
public int getMax()
Get the max number of services.- Returns:
- The max number.
-
setMax
public void setMax(int max)
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
public void setMin(int min)
Set the min number of services.- Parameters:
min- The min number to set.
-
getDefaultBinding
public RequiredServiceBinding getDefaultBinding()
Get the binding.- Returns:
- the binding.
-
setDefaultBinding
public void setDefaultBinding(RequiredServiceBinding binding)
Set the binding.- Parameters:
binding- The binding to set.
-
addInterceptor
public void addInterceptor(UnparsedExpression interceptor)
Add an interceptor.- Parameters:
interceptor- The interceptor.
-
removeInterceptor
public void removeInterceptor(UnparsedExpression interceptor)
Remove an interceptor.- Parameters:
interceptor- The interceptor.
-
getInterceptors
public UnparsedExpression[] getInterceptors()
Get the interceptors.- Returns:
- All interceptors.
-
getNFRProperties
public java.util.List<NFRPropertyInfo> getNFRProperties()
Get the nfproperties.- Returns:
- The nfproperties.
-
setNFRProperties
public void setNFRProperties(java.util.List<NFRPropertyInfo> nfproperties)
Set the nfproperties.- Parameters:
nfproperties- The nfproperties to set.
-
getTags
public java.util.Collection<java.lang.String> getTags()
Get the tags.- Returns:
- the tags
-
setTags
public void setTags(java.util.Collection<java.lang.String> tags)
Set the tags.- Parameters:
tags- The tags to set
-
-