public class RequiredServiceInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SCOPE_APPLICATION
Application scope.
|
static String |
SCOPE_COMPONENT
Component scope.
|
static String |
SCOPE_GLOBAL
Global scope.
|
static String |
SCOPE_LOCAL
Local component scope.
|
static String |
SCOPE_PARENT
Parent scope.
|
static String |
SCOPE_PLATFORM
Platform scope.
|
static String |
SCOPE_UPWARDS
Upwards scope.
|
Constructor and Description |
---|
RequiredServiceInfo()
Create a new service info.
|
RequiredServiceInfo(Class<?> type)
Create a new service info.
|
RequiredServiceInfo(String name,
Class type)
Create a new service info.
|
RequiredServiceInfo(String name,
Class<?> type,
boolean multiple,
Class<?> multiplextype,
RequiredServiceBinding binding)
Create a new service info.
|
RequiredServiceInfo(String name,
Class<?> type,
String scope,
Class<?> multiplextype)
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.
|
String |
getName()
Get the name.
|
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(String name)
Set the name.
|
void |
setType(ClassInfo type)
Set the type.
|
public static final String SCOPE_LOCAL
public static final String SCOPE_COMPONENT
public static final String SCOPE_APPLICATION
public static final String SCOPE_PLATFORM
public static final String SCOPE_GLOBAL
public static final String SCOPE_UPWARDS
public static final String SCOPE_PARENT
public RequiredServiceInfo()
public RequiredServiceInfo(Class<?> type)
public RequiredServiceInfo(String name, Class<?> type, String scope, Class<?> multiplextype)
public RequiredServiceInfo(String name, Class<?> type, boolean multiple, Class<?> multiplextype, RequiredServiceBinding binding)
public String getName()
public void setName(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()
Copyright © 2012. All Rights Reserved.