public class RequiredServiceInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected RequiredServiceBinding |
binding
The default binding.
|
protected java.util.List<UnparsedExpression> |
interceptors
The list of interceptors.
|
protected boolean |
multiple
Flag if multiple services should be returned.
|
protected ClassInfo |
multiplextype
The multiplex type.
|
protected java.lang.String |
name
The component internal service name.
|
protected java.util.List<NFRPropertyInfo> |
nfproperties
The nf props.
|
static java.lang.String |
SCOPE_APPLICATION
Application scope.
|
static java.lang.String |
SCOPE_COMPONENT
Component scope.
|
static java.lang.String |
SCOPE_GLOBAL
Global scope.
|
static java.lang.String |
SCOPE_LOCAL
Local component scope.
|
static java.lang.String |
SCOPE_NONE
None component scope (nothing will be searched).
|
static java.lang.String |
SCOPE_PARENT
Parent scope.
|
static java.lang.String |
SCOPE_PLATFORM
Platform scope.
|
protected java.util.Collection<java.lang.String> |
tags
The service tags to search for.
|
protected ClassInfo |
type
The type.
|
Constructor and Description |
---|
RequiredServiceInfo()
Create a new service info.
|
RequiredServiceInfo(java.lang.Class<?> type)
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,
boolean multiple,
java.lang.Class<?> multiplextype,
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,
java.lang.String scope,
java.lang.Class<?> multiplextype)
Create a new service info.
|
RequiredServiceInfo(java.lang.String name,
ClassInfo type,
boolean multiple,
ClassInfo multiplextype,
RequiredServiceBinding binding,
java.util.List<NFRPropertyInfo> nfprops,
java.util.Collection<java.lang.String> tags)
Create a new service info.
|
Modifier and Type | Method and Description |
---|---|
void |
addInterceptor(UnparsedExpression interceptor)
Add an interceptor.
|
RequiredServiceBinding |
getDefaultBinding()
Get the binding.
|
UnparsedExpression[] |
getInterceptors()
Get the interceptors.
|
ClassInfo |
getMultiplexType()
Get the multiplextype.
|
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.
|
boolean |
isMultiple()
Get the multiple.
|
void |
removeInterceptor(UnparsedExpression interceptor)
Remove an interceptor.
|
void |
setDefaultBinding(RequiredServiceBinding binding)
Set the binding.
|
void |
setMultiple(boolean multiple)
Set the multiple.
|
void |
setMultiplexType(ClassInfo multiplextype)
Set the multiplextype.
|
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.
|
public static final java.lang.String SCOPE_NONE
public static final java.lang.String SCOPE_LOCAL
public static final java.lang.String SCOPE_COMPONENT
public static final java.lang.String SCOPE_APPLICATION
public static final java.lang.String SCOPE_PLATFORM
public static final java.lang.String SCOPE_GLOBAL
public static final java.lang.String SCOPE_PARENT
protected java.lang.String name
protected ClassInfo type
protected java.util.Collection<java.lang.String> tags
protected boolean multiple
protected ClassInfo multiplextype
protected RequiredServiceBinding binding
protected java.util.List<UnparsedExpression> interceptors
protected java.util.List<NFRPropertyInfo> nfproperties
public RequiredServiceInfo()
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type)
public RequiredServiceInfo(java.lang.Class<?> type)
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, java.lang.String scope, java.lang.Class<?> multiplextype)
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, boolean multiple, java.lang.Class<?> multiplextype, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)
public RequiredServiceInfo(java.lang.String name, ClassInfo type, boolean multiple, ClassInfo multiplextype, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public ClassInfo getType()
public void setType(ClassInfo type)
type
- The type to set.public ClassInfo getMultiplexType()
public void setMultiplexType(ClassInfo multiplextype)
multiplextype
- The multiplextype to set.public boolean isMultiple()
public void setMultiple(boolean multiple)
multiple
- The multiple to set.public RequiredServiceBinding getDefaultBinding()
public void setDefaultBinding(RequiredServiceBinding binding)
binding
- The binding to set.public void addInterceptor(UnparsedExpression interceptor)
interceptor
- The interceptor.public void removeInterceptor(UnparsedExpression interceptor)
interceptor
- The interceptor.public UnparsedExpression[] getInterceptors()
public java.util.List<NFRPropertyInfo> getNFRProperties()
public void setNFRProperties(java.util.List<NFRPropertyInfo> nfproperties)
nfproperties
- The nfproperties to set.public java.util.Collection<java.lang.String> getTags()
public void setTags(java.util.Collection<java.lang.String> tags)
tags
- The tags to set