public interface ProviderContext
| Modifier and Type | Method and Description |
|---|---|
<T> T |
attribute(Class<T> key)
Retrieve an attribute ( identified by
key ), from current
context. |
Object |
attribute(String key)
Retrieve an attribute ( identified by
key ), from current
context. |
<A extends Annotation> |
getAnnotation(Class<A> anntationClass)
The list of annotations present on the target.
|
Class<?> |
targetType()
The type is expected to generate an object.
|
<A extends Annotation> A getAnnotation(Class<A> anntationClass)
Class<?> targetType()
Object attribute(String key)
key ), from current
context. Returns null if no object associated to the provided
key was found.key - <T> T attribute(Class<T> key)
key ), from current
context. Returns null if no object associated to the provided
key was found.key - Copyright © 2015. All rights reserved.