public interface Injector
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return a logical name for the injector.
|
Object |
getValue(Object adaptable,
String name,
Type declaredType,
AnnotatedElement element,
DisposalCallbackRegistry callbackRegistry)
Produce a value for an injection point.
|
String getName()
@Sourceannotations.
Object getValue(Object adaptable, String name, Type declaredType, AnnotatedElement element, DisposalCallbackRegistry callbackRegistry)
adaptable
- the object which should be used as the basis for value resolution.name
- the injection point namedeclaredType
- the declared type of the injection pointelement
- the injection point itselfcallbackRegistry
- a registry object to register a callback object which will be
invoked when the adapted object is disposed.Copyright © 2014 The Apache Software Foundation. All rights reserved.