org.glassfish.jersey.server.internal.inject
Class ParamInjectionResolver<A extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.glassfish.jersey.server.internal.inject.ParamInjectionResolver<A>
Type Parameters:
A - supported parameter injection annotation.
All Implemented Interfaces:
InjectionResolver<A>

public abstract class ParamInjectionResolver<A extends java.lang.annotation.Annotation>
extends java.lang.Object
implements InjectionResolver<A>

Abstract base class for resolving JAX-RS @XxxParam injection.

Author:
Marek Potociar (marek.potociar at oracle.com)

Field Summary
 
Fields inherited from interface org.glassfish.hk2.api.InjectionResolver
SYSTEM_RESOLVER_NAME
 
Constructor Summary
ParamInjectionResolver(java.lang.Class<? extends AbstractValueFactoryProvider<A>> valueFactoryProviderClass)
          Initialize the base parameter injection resolver.
 
Method Summary
 boolean isConstructorParameterIndicator()
           
 boolean isMethodParameterIndicator()
           
 java.lang.Object resolve(Injectee injectee, ServiceHandle<?> root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParamInjectionResolver

public ParamInjectionResolver(java.lang.Class<? extends AbstractValueFactoryProvider<A>> valueFactoryProviderClass)
Initialize the base parameter injection resolver.

Parameters:
valueFactoryProviderClass - parameter value factory provider class.
Method Detail

resolve

public java.lang.Object resolve(Injectee injectee,
                                ServiceHandle<?> root)
Specified by:
resolve in interface InjectionResolver<A extends java.lang.annotation.Annotation>

isConstructorParameterIndicator

public boolean isConstructorParameterIndicator()
Specified by:
isConstructorParameterIndicator in interface InjectionResolver<A extends java.lang.annotation.Annotation>

isMethodParameterIndicator

public boolean isMethodParameterIndicator()
Specified by:
isMethodParameterIndicator in interface InjectionResolver<A extends java.lang.annotation.Annotation>


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.