A - supported parameter injection annotation.public class ParamInjectionResolver<A extends Annotation> extends Object implements InjectionResolver<A>
@XxxParam injection.| Constructor and Description |
|---|
ParamInjectionResolver(ValueParamProvider valueParamProvider,
Class<A> annotation,
jakarta.inject.Provider<ContainerRequest> request)
Initialize the base parameter injection resolver.
|
| Modifier and Type | Method and Description |
|---|---|
Class<A> |
getAnnotation()
This method returns the annotation for what the injection resolver is implemented.
|
boolean |
isConstructorParameterIndicator()
This method should return true if the annotation that indicates that this is an injection point can appear in the parameter
list of a constructor.
|
boolean |
isMethodParameterIndicator()
This method should return true if the annotation that indicates that this is an injection point can appear in the parameter
list of a method.
|
Object |
resolve(Injectee injectee)
This method will return the object that should be injected into the given injection point.
|
public ParamInjectionResolver(ValueParamProvider valueParamProvider, Class<A> annotation, jakarta.inject.Provider<ContainerRequest> request)
valueParamProvider - parameter value supplier provider.public Object resolve(Injectee injectee)
InjectionResolverThis method should not do the injection themselves.
resolve in interface InjectionResolver<A extends Annotation>injectee - The injection point this value is being injected intopublic boolean isConstructorParameterIndicator()
InjectionResolverisConstructorParameterIndicator in interface InjectionResolver<A extends Annotation>public boolean isMethodParameterIndicator()
InjectionResolverisMethodParameterIndicator in interface InjectionResolver<A extends Annotation>public Class<A> getAnnotation()
InjectionResolvergetAnnotation in interface InjectionResolver<A extends Annotation>Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.