public class BasicRestResourceResolver extends FuzzyResourceResolver implements RestResourceResolver
public T(RestContextBuilder)
public T()
The former constructor can be used to get access to the RestContextBuilder object to get access to the
config file and initialization information or make programmatic modifications to the resource before
full initialization.
Child classes can also be defined as inner-classes of the parent resource class.
RestResourceResolver.NullBASIC, FUZZY| Constructor and Description |
|---|
BasicRestResourceResolver() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
resolve(Object parent,
Class<T> c,
RestContextBuilder builder,
Object... args)
Resolves the specified class to a resource object.
|
resolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolvepublic BasicRestResourceResolver()
public <T> T resolve(Object parent, Class<T> c, RestContextBuilder builder, Object... args)
RestResourceResolverSubclasses can override this method to provide their own custom resolution.
The default implementation simply creates a new class instance using Class.newInstance().
resolve in interface RestResourceResolverparent - The parent resource (i.e. the instance whose class has the @Rest(children) annotation.c - The class to resolve.builder - The initialization configuration for the resource.args - Optional arguments to pass to constructorCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.