org.apache.openejb.server.cxf.rs
Class Contexts
java.lang.Object
org.apache.openejb.server.cxf.rs.Contexts
public final class Contexts
- extends Object
|
Method Summary |
static void |
bind(org.apache.cxf.message.Exchange exchange)
|
static void |
bind(org.apache.cxf.message.Exchange exchange,
Collection<Class<?>> types)
Using a set ensures we don't set the thread local twice or more,
there may be super classes with injection points of identical types
Also allows us to get context references from other sources such as interceptors |
static
|
find(Class<T> clazz)
|
static Collection<Class<?>> |
findContextFields(Class<?> cls,
Collection<Class<?>> types)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
findContextFields
public static Collection<Class<?>> findContextFields(Class<?> cls,
Collection<Class<?>> types)
bind
public static void bind(org.apache.cxf.message.Exchange exchange)
bind
public static void bind(org.apache.cxf.message.Exchange exchange,
Collection<Class<?>> types)
- Using a set ensures we don't set the thread local twice or more,
there may be super classes with injection points of identical types
Also allows us to get context references from other sources such as interceptors
- Parameters:
exchange - types -
find
public static <T> T find(Class<T> clazz)
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.