com.atlassian.plugins.rest.common.expand.resolver
Class ExpandConstraintEntityExpanderResolver
java.lang.Object
com.atlassian.plugins.rest.common.expand.resolver.ExpandConstraintEntityExpanderResolver
- All Implemented Interfaces:
- EntityExpanderResolver
public class ExpandConstraintEntityExpanderResolver
- extends java.lang.Object
- implements EntityExpanderResolver
Entity expander resolver that will get resolver for classes (objects) with method annotated with @ExpandConstraint.
Method signature should be the same as below:
|
Method Summary |
|
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 |
ExpandConstraintEntityExpanderResolver
public ExpandConstraintEntityExpanderResolver()
hasExpander
public boolean hasExpander(java.lang.Class<?> type)
- Description copied from interface:
EntityExpanderResolver
- Tells whether this resolver can get an expander for the given instance.
- Specified by:
hasExpander in interface EntityExpanderResolver
- Parameters:
type - the type to resolve the expander for.
- Returns:
true if an expander can be found for this object instance, false otherwise.
getExpander
public <T> EntityExpander<T> getExpander(java.lang.Class<? extends T> type)
- Description copied from interface:
EntityExpanderResolver
- Gets an
EntityExpander for the given type.
- Specified by:
getExpander in interface EntityExpanderResolver
- Type Parameters:
T - the type of object to retrieve the expander for.- Parameters:
type - the type of object to look up the expander for.
- Returns:
- the EntityExpander,
null if none could be found. This method will never return null if
EntityExpanderResolver.hasExpander(Class) returns true for the same instance.
Copyright © 2014 Atlassian. All Rights Reserved.