public class ExpandConstraintEntityExpanderResolver extends 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:
@ExpandConstraint public void expandInstance(Indexes indexes)
{
// your code to expand the object here
}
| Constructor and Description |
|---|
ExpandConstraintEntityExpanderResolver() |
| Modifier and Type | Method and Description |
|---|---|
<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 ExpandConstraintEntityExpanderResolver()
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 <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.Copyright © 2016 Atlassian. All rights reserved.