com.sun.jersey.server.impl.inject
Class AbstractHttpContextInjectable<T>

java.lang.Object
  extended by com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable<T>
Type Parameters:
T - the type of the injectable value.
All Implemented Interfaces:
Injectable<T>

public abstract class AbstractHttpContextInjectable<T>
extends Object
implements Injectable<T>

An injectable that obtains an injectable value given the HttpContext.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
AbstractHttpContextInjectable()
           
 
Method Summary
 T getValue()
          This implementation throws an IllegalStateException.
abstract  T getValue(HttpContext c)
          Get the injectable value given the HttpContext.
static AbstractHttpContextInjectable transform(Injectable i)
          Transform a Injectable into an instance of this class.
static List<AbstractHttpContextInjectable> transform(List<Injectable> l)
          Transform a list of Injectable into a list of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpContextInjectable

public AbstractHttpContextInjectable()
Method Detail

getValue

public T getValue()
This implementation throws an IllegalStateException.

Specified by:
getValue in interface Injectable<T>
Returns:
the injectable value

getValue

public abstract T getValue(HttpContext c)
Get the injectable value given the HttpContext.

Parameters:
c - the http context,
Returns:
the value.

transform

public static List<AbstractHttpContextInjectable> transform(List<Injectable> l)
Transform a list of Injectable into a list of this class.

Parameters:
l - the list of injectable.
Returns:
the list of this class.

transform

public static AbstractHttpContextInjectable transform(Injectable i)
Transform a Injectable into an instance of this class.

Parameters:
i - the injectable.
Returns:
an instance of this class.


Copyright © 2013 Oracle Corporation. All Rights Reserved.