@Singleton public class AutowiredInjectResolver extends Object implements org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>
Autowired annotation injection.| Constructor and Description |
|---|
AutowiredInjectResolver(org.springframework.context.ApplicationContext ctx)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Class<org.springframework.beans.factory.annotation.Autowired> |
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(org.glassfish.jersey.internal.inject.Injectee injectee)
This method will return the object that should be injected into the given injection point.
|
public AutowiredInjectResolver(org.springframework.context.ApplicationContext ctx)
ctx - Spring application context.public Object resolve(org.glassfish.jersey.internal.inject.Injectee injectee)
org.glassfish.jersey.internal.inject.InjectionResolverThis method should not do the injection themselves.
resolve in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>injectee - The injection point this value is being injected intopublic boolean isConstructorParameterIndicator()
org.glassfish.jersey.internal.inject.InjectionResolverisConstructorParameterIndicator in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>public boolean isMethodParameterIndicator()
org.glassfish.jersey.internal.inject.InjectionResolverisMethodParameterIndicator in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>public Class<org.springframework.beans.factory.annotation.Autowired> getAnnotation()
org.glassfish.jersey.internal.inject.InjectionResolvergetAnnotation in interface org.glassfish.jersey.internal.inject.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>Copyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.