org.glassfish.jersey.server.spring
Class AutowiredInjectResolver

java.lang.Object
  extended by org.glassfish.jersey.server.spring.AutowiredInjectResolver
All Implemented Interfaces:
org.glassfish.hk2.api.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>

@Singleton
public class AutowiredInjectResolver
extends Object
implements org.glassfish.hk2.api.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>

HK2 injection resolver for Spring framework Autowired annotation injection.

Author:
Marko Asplund (marko.asplund at yahoo.com)

Field Summary
 
Fields inherited from interface org.glassfish.hk2.api.InjectionResolver
SYSTEM_RESOLVER_NAME
 
Constructor Summary
AutowiredInjectResolver(org.springframework.context.ApplicationContext ctx)
          Create a new instance.
 
Method Summary
 boolean isConstructorParameterIndicator()
           
 boolean isMethodParameterIndicator()
           
 Object resolve(org.glassfish.hk2.api.Injectee injectee, org.glassfish.hk2.api.ServiceHandle<?> root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutowiredInjectResolver

public AutowiredInjectResolver(org.springframework.context.ApplicationContext ctx)
Create a new instance.

Parameters:
ctx - Spring application context.
Method Detail

resolve

public Object resolve(org.glassfish.hk2.api.Injectee injectee,
                      org.glassfish.hk2.api.ServiceHandle<?> root)
Specified by:
resolve in interface org.glassfish.hk2.api.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>

isConstructorParameterIndicator

public boolean isConstructorParameterIndicator()
Specified by:
isConstructorParameterIndicator in interface org.glassfish.hk2.api.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>

isMethodParameterIndicator

public boolean isMethodParameterIndicator()
Specified by:
isMethodParameterIndicator in interface org.glassfish.hk2.api.InjectionResolver<org.springframework.beans.factory.annotation.Autowired>


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.