public abstract class AbstractReferenceResolver<A extends Annotation> extends Object implements ReferenceResolver
Constructor and Description |
---|
AbstractReferenceResolver(Class<A> annotationClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canResolve(AccessibleObject accessibleObject)
Returns true if can resolve, false otherwise.
|
String |
resolve(AccessibleObject accessibleObject)
Resolves JNDI name.
|
protected abstract String |
resolveField(Field field)
All subclasses have to implement this template method.
|
protected abstract String |
resolveMethod(Method method)
All subclasses have to implement this template method.
|
public final String resolve(AccessibleObject accessibleObject)
ReferenceResolver
resolve
in interface ReferenceResolver
accessibleObject
- objectpublic final boolean canResolve(AccessibleObject accessibleObject)
ReferenceResolver
canResolve
in interface ReferenceResolver
accessibleObject
- objectprotected abstract String resolveMethod(Method method)
Method
- methodCopyright © 2019 JBoss, by Red Hat. All rights reserved.