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:
Factory<T>

public abstract class AbstractHttpContextValueFactory<T>
extends Object
implements 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
 void dispose(T instance)
           
protected abstract  T get(HttpContext context)
          Get the injectable value given the HttpContext.
 T provide()
           
 
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

provide

public T provide()
Specified by:
provide in interface Factory<T>

dispose

public void dispose(T instance)
Specified by:
dispose in interface Factory<T>

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.