org.glassfish.jersey.server.internal.inject
Class AbstractHttpContextValueFactory<T>
java.lang.Object
org.glassfish.jersey.server.internal.inject.AbstractHttpContextValueFactory<T>
- Type Parameters:
T - the type of the injectable value.
- All Implemented Interfaces:
- org.glassfish.hk2.api.Factory<T>
public abstract class AbstractHttpContextValueFactory<T>
- extends Object
- implements org.glassfish.hk2.api.Factory<T>
A value factory that provides an injectable value from the HttpContext.
- Author:
- Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHttpContextValueFactory
public AbstractHttpContextValueFactory()
provide
public T provide()
- Specified by:
provide in interface org.glassfish.hk2.api.Factory<T>
dispose
public void dispose(T instance)
- Specified by:
dispose in interface org.glassfish.hk2.api.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-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.