|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugins.rest.common.expand.resolver.AbstractAnnotationEntityExpanderResolver
public abstract class AbstractAnnotationEntityExpanderResolver
An EntityExpander resolver that uses the Expander annotation for resolution.
Implementation must implement getEntityExpander(Expander)
| Constructor Summary | |
|---|---|
AbstractAnnotationEntityExpanderResolver()
|
|
| Method Summary | ||
|---|---|---|
protected abstract EntityExpander<?> |
getEntityExpander(Expander expander)
Retrieves the EntityExpander associated to the Expander annotation. |
|
|
getExpander(java.lang.Class<? extends T> type)
Gets an EntityExpander for the given type. |
|
boolean |
hasExpander(java.lang.Class<?> type)
Tells whether this resolver can get an expander for the given instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAnnotationEntityExpanderResolver()
| Method Detail |
|---|
public boolean hasExpander(java.lang.Class<?> type)
EntityExpanderResolver
hasExpander in interface EntityExpanderResolvertype - the type to resolve the expander for.
true if an expander can be found for this object instance, false otherwise.public final <T> EntityExpander<T> getExpander(java.lang.Class<? extends T> type)
EntityExpanderResolverEntityExpander for the given type.
getExpander in interface EntityExpanderResolverT - the type of object to retrieve the expander for.type - the type of object to look up the expander for.
null if none could be found. This method will never return null if
EntityExpanderResolver.hasExpander(Class) returns true for the same instance.protected abstract EntityExpander<?> getEntityExpander(Expander expander)
EntityExpander associated to the Expander annotation. The entity expander is created if necessary.
expander - the annotation
EntityExpander
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||