public abstract class AbstractAnnotationEntityExpanderResolver extends Object implements EntityExpanderResolver
An EntityExpander resolver that uses the Expander annotation for resolution.
Implementation must implement getEntityExpander(Expander)
| Constructor and Description |
|---|
AbstractAnnotationEntityExpanderResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract EntityExpander<?> |
getEntityExpander(Expander expander)
Retrieves the
EntityExpander associated to the Expander annotation. |
<T> EntityExpander<T> |
getExpander(Class<? extends T> type)
Gets an
EntityExpander for the given type. |
boolean |
hasExpander(Class<?> type)
Tells whether this resolver can get an expander for the given instance.
|
public AbstractAnnotationEntityExpanderResolver()
public boolean hasExpander(Class<?> type)
EntityExpanderResolverhasExpander 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(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 annotationEntityExpanderCopyright © 2017 Atlassian. All rights reserved.