public class EmptyProviderContext extends Object implements ProviderContext
| Constructor and Description |
|---|
EmptyProviderContext() |
| 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.
|
public <A extends Annotation> A getAnnotation(Class<A> anntationClass)
ProviderContextgetAnnotation in interface ProviderContextpublic Class<?> targetType()
ProviderContexttargetType in interface ProviderContextpublic Object attribute(String key)
ProviderContextkey ), from current
context. Returns null if no object associated to the provided
key was found.attribute in interface ProviderContextpublic <T> T attribute(Class<T> key)
ProviderContextkey ), from current
context. Returns null if no object associated to the provided
key was found.attribute in interface ProviderContextCopyright © 2015. All rights reserved.