public final class Contexts extends Object
| Modifier and Type | Method and Description |
|---|---|
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 <T> T |
find(Class<T> clazz) |
static Collection<Class<?>> |
findContextFields(Class<?> cls,
Collection<Class<?>> types) |
static Object |
restore(Object oldState) |
static Object |
state() |
public static Collection<Class<?>> findContextFields(Class<?> cls, Collection<Class<?>> types)
public static void bind(org.apache.cxf.message.Exchange exchange)
public static void bind(org.apache.cxf.message.Exchange exchange,
Collection<Class<?>> types)
exchange - Exchangetypes - Collectionpublic static <T> T find(Class<T> clazz)
public static Object state()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.