org.glassfish.jersey.internal.inject
Class ContextInjectionResolver

java.lang.Object
  extended by com.sun.hk2.component.InjectionResolver<Context>
      extended by org.glassfish.jersey.internal.inject.ContextInjectionResolver
All Implemented Interfaces:
com.sun.hk2.component.InjectionResolverQuery

public class ContextInjectionResolver
extends com.sun.hk2.component.InjectionResolver<Context>

Injection resolver for @Context injection annotation.

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

Nested Class Summary
static class ContextInjectionResolver.Module
           
 
Field Summary
 
Fields inherited from class com.sun.hk2.component.InjectionResolver
type
 
Constructor Summary
ContextInjectionResolver()
           
 
Method Summary
<V> V
getValue(java.lang.Object component, org.jvnet.hk2.component.Inhabitant<?> onBehalfOf, java.lang.reflect.AnnotatedElement annotated, java.lang.reflect.Type genericType, java.lang.Class<V> type)
           
 boolean isOptional(java.lang.reflect.AnnotatedElement annotated, Context annotation)
           
 
Methods inherited from class com.sun.hk2.component.InjectionResolver
getSetterMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextInjectionResolver

public ContextInjectionResolver()
Method Detail

isOptional

public boolean isOptional(java.lang.reflect.AnnotatedElement annotated,
                          Context annotation)
Overrides:
isOptional in class com.sun.hk2.component.InjectionResolver<Context>

getValue

public <V> V getValue(java.lang.Object component,
                      org.jvnet.hk2.component.Inhabitant<?> onBehalfOf,
                      java.lang.reflect.AnnotatedElement annotated,
                      java.lang.reflect.Type genericType,
                      java.lang.Class<V> type)
           throws org.jvnet.hk2.component.ComponentException
Throws:
org.jvnet.hk2.component.ComponentException


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