@ConsumerType
public interface Injector
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Return a logical name for the injector.
|
java.lang.Object |
getValue(java.lang.Object adaptable,
java.lang.String name,
java.lang.reflect.Type declaredType,
java.lang.reflect.AnnotatedElement element,
DisposalCallbackRegistry callbackRegistry)
Produce a value for an injection point.
|
@Nonnull java.lang.String getName()
@Sourceannotations.
@CheckForNull
java.lang.Object getValue(@Nonnull
java.lang.Object adaptable,
java.lang.String name,
@Nonnull
java.lang.reflect.Type declaredType,
@Nonnull
java.lang.reflect.AnnotatedElement element,
@Nonnull
DisposalCallbackRegistry callbackRegistry)
adaptable - the object which should be used as the basis for value resolution.name - the injection point name (may be only null if injector implements the AcceptsNullName interface, otherwise never null)declaredType - 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 © 2018 The Apache Software Foundation. All rights reserved.