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 java.lang.String |
name
The component internal service name.
|
protected java.util.List<NFRPropertyInfo> |
nfproperties
The nf props.
|
static ServiceScope |
SCOPE_APPLICATION
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_APPLICATION_GLOBAL
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_APPLICATION_NETWORK
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_COMPONENT
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_COMPONENT_ONLY
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_GLOBAL
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_NETWORK
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_NONE
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_PARENT
Deprecated.
Use
ServiceScope instead |
static ServiceScope |
SCOPE_PLATFORM
Deprecated.
Use
ServiceScope instead |
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,
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.
|
RequiredServiceInfo(java.lang.String name,
ClassInfo type,
boolean multiple,
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.
|
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 |
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 ServiceScope SCOPE_NONE
ServiceScope
insteadpublic static final ServiceScope SCOPE_PARENT
ServiceScope
insteadpublic static final ServiceScope SCOPE_COMPONENT_ONLY
ServiceScope
insteadpublic static final ServiceScope SCOPE_COMPONENT
ServiceScope
insteadpublic static final ServiceScope SCOPE_APPLICATION
ServiceScope
insteadpublic static final ServiceScope SCOPE_PLATFORM
ServiceScope
insteadpublic static final ServiceScope SCOPE_APPLICATION_NETWORK
ServiceScope
insteadpublic static final ServiceScope SCOPE_NETWORK
ServiceScope
insteadpublic static final ServiceScope SCOPE_APPLICATION_GLOBAL
ServiceScope
insteadpublic static final ServiceScope SCOPE_GLOBAL
ServiceScope
insteadprotected java.lang.String name
protected ClassInfo type
protected java.util.Collection<java.lang.String> tags
protected boolean multiple
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, ServiceScope scope)
public RequiredServiceInfo(java.lang.String name, java.lang.Class<?> type, boolean multiple, RequiredServiceBinding binding, java.util.List<NFRPropertyInfo> nfprops, java.util.Collection<java.lang.String> tags)
public RequiredServiceInfo(java.lang.String name, ClassInfo type, boolean multiple, 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 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