org.glassfish.jersey.server.internal.inject
Class AbstractHttpContextValueFactory<T>

java.lang.Object
  extended by org.glassfish.jersey.server.internal.inject.AbstractHttpContextValueFactory<T>
Type Parameters:
T - the type of the injectable value.
All Implemented Interfaces:
org.glassfish.hk2.Factory<T>

public abstract class AbstractHttpContextValueFactory<T>
extends Object
implements org.glassfish.hk2.Factory<T>

A value factory that provides an injectable value from the HttpContext.

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

Constructor Summary
AbstractHttpContextValueFactory()
           
 
Method Summary
 T get()
           
protected abstract  T get(HttpContext context)
          Get the injectable value given the HttpContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpContextValueFactory

public AbstractHttpContextValueFactory()
Method Detail

get

public T get()
      throws org.glassfish.hk2.ComponentException
Specified by:
get in interface org.glassfish.hk2.Factory<T>
Throws:
org.glassfish.hk2.ComponentException

get

protected abstract T get(HttpContext context)
Get the injectable value given the HttpContext.

Parameters:
context - the context.
Returns:
the value.


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