public interface ResourceResolver
Class
objects to instances.Modifier and Type | Field and Description |
---|---|
static ResourceResolver |
BASIC
Look for constructors where the arguments passed in must match exactly.
|
static ResourceResolver |
FUZZY
Look for constructors where arguments may or may not exist in any order.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
resolve(Object parent,
Class<T> c,
Object... args)
Resolves the specified class to a resource object.
|
static final ResourceResolver BASIC
static final ResourceResolver FUZZY
<T> T resolve(Object parent, Class<T> c, Object... args)
Subclasses can override this method to provide their own custom resolution.
The default implementation simply creates a new class instance using Class.newInstance()
.
parent
- The parent resource.c
- The class to resolve.args
- Optional arguments to pass to constructorCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.