public abstract class DirectInstantiationProvider extends Object implements Handler
| Constructor and Description |
|---|
DirectInstantiationProvider() |
| Modifier and Type | Method and Description |
|---|---|
Resolution<?> |
resolve(ResolutionContext context)
Resolves the context such that the object identified by the context's object identifier can be
instantiated or retrieved.
|
protected abstract <T> Resolution<T> |
safeGet(Class<T> clazz)
Gets the instantiation for the class or null if unavailable.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAnnotation, onProvider, onProviderClass, postProcesspublic final Resolution<?> resolve(ResolutionContext context)
Handler
The returned Resolution must correspond to the type represented by the context's object identifier.
@Nullable protected abstract <T> Resolution<T> safeGet(Class<T> clazz)
T - the class' typeclazz - the class to processCopyright © 2017. All rights reserved.