|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugins.rest.common.expand.SelfExpandingExpander.Resolver
public static class SelfExpandingExpander.Resolver
To use the self expanding mechanism, make sure you register an instance
of this EntityExpanderResolver in your application's
ExpandResponseFilter.
| Constructor Summary | |
|---|---|
SelfExpandingExpander.Resolver()
|
|
| Method Summary | ||
|---|---|---|
|
getExpander(java.lang.Class<? extends T> aClass)
Gets an EntityExpander for the given type. |
|
|
getExpander(T instance)
Gets an EntityExpander for the given instance. |
|
boolean |
hasExpander(java.lang.Class<?> aClass)
Tells whether this resolver can get an expander for the given instance. |
|
|
hasExpander(T instance)
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 SelfExpandingExpander.Resolver()
| Method Detail |
|---|
public <T> boolean hasExpander(T instance)
EntityExpanderResolver
hasExpander in interface EntityExpanderResolverinstance - the object to resolve the expander for.
true if an expander can be found for this object instance, false otherwise.public boolean hasExpander(java.lang.Class<?> aClass)
EntityExpanderResolver
hasExpander in interface EntityExpanderResolveraClass - the type to resolve the expander for.
true if an expander can be found for this object instance, false otherwise.public <T> EntityExpander<T> getExpander(T instance)
EntityExpanderResolverEntityExpander for the given instance.
getExpander in interface EntityExpanderResolverT - the type of object to retrieve the expander for.instance - the object to resolve the expander for.
null if none could be found. This method will never null if EntityExpanderResolver.hasExpander(Object) returns true for the same instance.public <T> EntityExpander<T> getExpander(java.lang.Class<? extends T> aClass)
EntityExpanderResolverEntityExpander for the given type.
getExpander in interface EntityExpanderResolverT - the type of object to retrieve the expander for.aClass - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||