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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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_NONEpublic static final ServiceScope SCOPE_NONE Deprecated.UseServiceScopeinstead
 - 
SCOPE_PARENTpublic static final ServiceScope SCOPE_PARENT Deprecated.UseServiceScopeinstead
 - 
SCOPE_COMPONENT_ONLYpublic static final ServiceScope SCOPE_COMPONENT_ONLY Deprecated.UseServiceScopeinstead
 - 
SCOPE_COMPONENTpublic static final ServiceScope SCOPE_COMPONENT Deprecated.UseServiceScopeinstead
 - 
SCOPE_APPLICATIONpublic static final ServiceScope SCOPE_APPLICATION Deprecated.UseServiceScopeinstead
 - 
SCOPE_PLATFORMpublic static final ServiceScope SCOPE_PLATFORM Deprecated.UseServiceScopeinstead
 - 
SCOPE_APPLICATION_NETWORKpublic static final ServiceScope SCOPE_APPLICATION_NETWORK Deprecated.UseServiceScopeinstead
 - 
SCOPE_NETWORKpublic static final ServiceScope SCOPE_NETWORK Deprecated.UseServiceScopeinstead
 - 
SCOPE_APPLICATION_GLOBALpublic static final ServiceScope SCOPE_APPLICATION_GLOBAL Deprecated.UseServiceScopeinstead
 - 
SCOPE_GLOBALpublic static final ServiceScope SCOPE_GLOBAL Deprecated.UseServiceScopeinstead
 - 
MANYpublic static final int MANY Constant for multiplicity many.- See Also:
- Constant Field Values
 
 - 
UNDEFINEDpublic static final int UNDEFINED Constant for multiplicity undefined.- See Also:
- Constant Field Values
 
 - 
nameprotected java.lang.String name The component internal service name.
 - 
typeprotected ClassInfo type The type.
 - 
tagsprotected java.util.Collection<java.lang.String> tags The service tags to search for.
 - 
minprotected int min The min number of services.
 - 
maxprotected int max The max number of services.
 - 
bindingprotected RequiredServiceBinding binding The default binding.
 - 
interceptorsprotected java.util.List<UnparsedExpression> interceptors The list of interceptors.
 - 
nfpropertiesprotected java.util.List<NFRPropertyInfo> nfproperties The nf props. This is not for search but adds NF props
 
- 
 - 
Constructor Detail- 
RequiredServiceInfopublic RequiredServiceInfo() Create a new service info.
 - 
RequiredServiceInfopublic RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type)Create a new service info.
 - 
RequiredServiceInfopublic RequiredServiceInfo(java.lang.Class<?> type) Create a new service info.
 - 
RequiredServiceInfopublic RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, ServiceScope scope)Create a new service info.
 - 
RequiredServiceInfopublic 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.
 - 
RequiredServiceInfopublic 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- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- the name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
getTypepublic ClassInfo getType() Get the type.- Returns:
- The type.
 
 - 
setTypepublic void setType(ClassInfo type) Set the type.- Parameters:
- type- The type to set.
 
 - 
getMaxpublic int getMax() Get the max number of services.- Returns:
- The max number.
 
 - 
setMaxpublic void setMax(int max) Set the max number of services.- Parameters:
- max- The max number to set.
 
 - 
getMinpublic int getMin() Get the minimum number of services.- Returns:
- The min number of services.
 
 - 
setMinpublic void setMin(int min) Set the min number of services.- Parameters:
- min- The min number to set.
 
 - 
getDefaultBindingpublic RequiredServiceBinding getDefaultBinding() Get the binding.- Returns:
- the binding.
 
 - 
setDefaultBindingpublic void setDefaultBinding(RequiredServiceBinding binding) Set the binding.- Parameters:
- binding- The binding to set.
 
 - 
addInterceptorpublic void addInterceptor(UnparsedExpression interceptor) Add an interceptor.- Parameters:
- interceptor- The interceptor.
 
 - 
removeInterceptorpublic void removeInterceptor(UnparsedExpression interceptor) Remove an interceptor.- Parameters:
- interceptor- The interceptor.
 
 - 
getInterceptorspublic UnparsedExpression[] getInterceptors() Get the interceptors.- Returns:
- All interceptors.
 
 - 
getNFRPropertiespublic java.util.List<NFRPropertyInfo> getNFRProperties() Get the nfproperties.- Returns:
- The nfproperties.
 
 - 
setNFRPropertiespublic void setNFRProperties(java.util.List<NFRPropertyInfo> nfproperties) Set the nfproperties.- Parameters:
- nfproperties- The nfproperties to set.
 
 - 
getTagspublic java.util.Collection<java.lang.String> getTags() Get the tags.- Returns:
- the tags
 
 - 
setTagspublic void setTags(java.util.Collection<java.lang.String> tags) Set the tags.- Parameters:
- tags- The tags to set
 
 
- 
 
-