Package jadex.bridge.service
Class RequiredServiceInfo
- java.lang.Object
-
- jadex.bridge.service.RequiredServiceInfo
-
public class RequiredServiceInfo extends java.lang.Object
Struct for information about a required service.
-
-
Field Summary
Fields Modifier and Type Field Description protected RequiredServiceBinding
binding
The default binding.protected java.util.List<UnparsedExpression>
interceptors
The list of interceptors.static int
MANY
Constant for multiplicity many.protected int
max
The max number of services.protected int
min
The min number of services.protected java.lang.String
name
The component internal service name.protected java.util.List<NFRPropertyInfo>
nfproperties
The nf props.static ServiceScope
SCOPE_APPLICATION
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_APPLICATION_GLOBAL
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_APPLICATION_NETWORK
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_COMPONENT
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_COMPONENT_ONLY
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_GLOBAL
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_NETWORK
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_NONE
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_PARENT
Deprecated.UseServiceScope
insteadstatic ServiceScope
SCOPE_PLATFORM
Deprecated.UseServiceScope
insteadprotected java.util.Collection<java.lang.String>
tags
The service tags to search for.protected ClassInfo
type
The type.static int
UNDEFINED
Constant 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 void
addInterceptor(UnparsedExpression interceptor)
Add an interceptor.RequiredServiceBinding
getDefaultBinding()
Get the binding.UnparsedExpression[]
getInterceptors()
Get the interceptors.int
getMax()
Get the max number of services.int
getMin()
Get the minimum number of services.java.lang.String
getName()
Get the name.java.util.List<NFRPropertyInfo>
getNFRProperties()
Get the nfproperties.java.util.Collection<java.lang.String>
getTags()
Get the tags.ClassInfo
getType()
Get the type.void
removeInterceptor(UnparsedExpression interceptor)
Remove an interceptor.void
setDefaultBinding(RequiredServiceBinding binding)
Set the binding.void
setMax(int max)
Set the max number of services.void
setMin(int min)
Set the min number of services.void
setName(java.lang.String name)
Set the name.void
setNFRProperties(java.util.List<NFRPropertyInfo> nfproperties)
Set the nfproperties.void
setTags(java.util.Collection<java.lang.String> tags)
Set the tags.void
setType(ClassInfo type)
Set the type.
-
-
-
Field Detail
-
SCOPE_NONE
public static final ServiceScope SCOPE_NONE
Deprecated.UseServiceScope
instead
-
SCOPE_PARENT
public static final ServiceScope SCOPE_PARENT
Deprecated.UseServiceScope
instead
-
SCOPE_COMPONENT_ONLY
public static final ServiceScope SCOPE_COMPONENT_ONLY
Deprecated.UseServiceScope
instead
-
SCOPE_COMPONENT
public static final ServiceScope SCOPE_COMPONENT
Deprecated.UseServiceScope
instead
-
SCOPE_APPLICATION
public static final ServiceScope SCOPE_APPLICATION
Deprecated.UseServiceScope
instead
-
SCOPE_PLATFORM
public static final ServiceScope SCOPE_PLATFORM
Deprecated.UseServiceScope
instead
-
SCOPE_APPLICATION_NETWORK
public static final ServiceScope SCOPE_APPLICATION_NETWORK
Deprecated.UseServiceScope
instead
-
SCOPE_NETWORK
public static final ServiceScope SCOPE_NETWORK
Deprecated.UseServiceScope
instead
-
SCOPE_APPLICATION_GLOBAL
public static final ServiceScope SCOPE_APPLICATION_GLOBAL
Deprecated.UseServiceScope
instead
-
SCOPE_GLOBAL
public static final ServiceScope SCOPE_GLOBAL
Deprecated.UseServiceScope
instead
-
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
-
-