@ConsumerType
public interface Injector
Modifier and Type | Method and Description |
---|---|
@NotNull String |
getName()
Return a logical name for the injector.
|
@Nullable Object |
getValue(@NotNull Object adaptable,
String name,
@NotNull Type declaredType,
@NotNull AnnotatedElement element,
@NotNull DisposalCallbackRegistry callbackRegistry)
Produce a value for an injection point.
|
@NotNull @NotNull String getName()
@Sourceannotations.
@Nullable @Nullable Object getValue(@NotNull @NotNull Object adaptable, String name, @NotNull @NotNull Type declaredType, @NotNull @NotNull AnnotatedElement element, @NotNull @NotNull 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 © 2010 - 2020 Adobe. All Rights Reserved