|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.wsf.common.injection.resolvers.AbstractReferenceResolver<A>
public abstract class AbstractReferenceResolver<A extends java.lang.annotation.Annotation>
This class adds support for notion of annotated fields and methods. It also ensures passed methods and fields are non null references plus it implements some common logic that would otherwise be implemented in all subclasses. It is highly recommended that all reference resolvers extend this base class for high code reuse.
Constructor Summary | |
---|---|
AbstractReferenceResolver(java.lang.Class<A> annotationClass)
Constructor. |
Method Summary | |
---|---|
boolean |
canResolve(java.lang.reflect.AccessibleObject accessibleObject)
|
java.lang.String |
resolve(java.lang.reflect.AccessibleObject accessibleObject)
|
protected abstract java.lang.String |
resolveField(java.lang.reflect.Field field)
All subclasses have to implement this template method. |
protected abstract java.lang.String |
resolveMethod(java.lang.reflect.Method method)
All subclasses have to implement this template method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractReferenceResolver(java.lang.Class<A> annotationClass)
Method Detail |
---|
public final java.lang.String resolve(java.lang.reflect.AccessibleObject accessibleObject)
resolve
in interface org.jboss.wsf.spi.metadata.injection.ReferenceResolver
public final boolean canResolve(java.lang.reflect.AccessibleObject accessibleObject)
canResolve
in interface org.jboss.wsf.spi.metadata.injection.ReferenceResolver
protected abstract java.lang.String resolveMethod(java.lang.reflect.Method method)
Method
- method
protected abstract java.lang.String resolveField(java.lang.reflect.Field field)
Field
- field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |