public class Descriptor<T> extends Object implements Serializable
Descriptor
describes the component's structure.Constructor and Description |
---|
Descriptor(Class<T> type)
Constructs a new
Descriptor with the specified component class. |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ListMultimap<Class<? extends Annotation>,Method> |
advices()
Returns
Advice class and corresponding methods to be executed in
interceptor. |
Set<Annotation> |
bindings()
Returns the binding annotations the component is qualified.
|
Set<Annotation> |
constraints()
Returns
Constraint on this class. |
Constructor<T> |
constructor()
Returns the constructor for the dependency injection.
|
Set<Class<? extends Annotation>> |
deployments()
Returns the deployment qualifiers the component is deployed.
|
Set<Field> |
injects()
Returns injectable fields.
|
boolean |
interceptor()
Returns if the component is an interceptor.
|
Set<Annotation> |
intercepts()
Returns the intercept annotations the component is qualified.
|
Set<Method> |
joinpoints()
Returns interceptable methods.
|
com.google.common.collect.Multimap<Class<? extends Annotation>,Method> |
lifecycles()
Returns
Lifecycle class and corresponding callback methods. |
Annotation |
scope()
Returns the scope the component is sustained.
|
String |
toString()
String representation.
|
Class<T> |
type()
Returns the component class.
|
Set<Field> |
validates()
Returns
Constraint class and corresponding fields to be validated. |
public Descriptor(Class<T> type)
Descriptor
with the specified component class.
NOTE: Joinpoints are ignored if the specified component is a subclass of
Component
and advises are ignored if the specified component is
not an interceptor.type
- The component class.ConfigurationException
- If the specified component class is
annotated by multiple scope qualifiers or annotated with @Inject
on multiple constructors.public boolean interceptor()
public Set<Class<? extends Annotation>> deployments()
public Annotation scope()
public Set<Annotation> bindings()
public Set<Annotation> constraints()
Constraint
on this class.Constraint
on this class.public Constructor<T> constructor()
public Set<Method> joinpoints()
public com.google.common.collect.Multimap<Class<? extends Annotation>,Method> lifecycles()
Lifecycle
class and corresponding callback methods.Lifecycle
class and corresponding callback methods.public Set<Field> validates()
Constraint
class and corresponding fields to be validated.Constraint
class and corresponding fields to be validated.public Set<Annotation> intercepts()
public com.google.common.collect.ListMultimap<Class<? extends Annotation>,Method> advices()
Advice
class and corresponding methods to be executed in
interceptor.Advice
class and corresponding methods to be executed in
interceptorCopyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.