Modifier and Type | Method and Description |
---|---|
void |
destroy() |
static LocalContext |
get(Message message) |
static LocalContext |
get(QueueSession session) |
<T> T |
getAttribute(Class<T> type) |
<T> T |
getAttribute(Class<T> type,
Class<?> typeIndexed) |
<T> T |
getAttribute(Class<T> type,
Enum<?> key) |
<T> T |
getAttribute(Class<T> type,
String param) |
Collection<String> |
getAttributeNames() |
QueueSession |
getSession() |
boolean |
hasAttribute(String param) |
Object |
removeAttribute(Class<?> typeIndexed) |
Object |
removeAttribute(Enum<?> key) |
Object |
removeAttribute(String param) |
void |
setAttribute(Class<?> typeIndexed,
Object value) |
void |
setAttribute(Enum<?> key,
Object value) |
void |
setAttribute(String param,
Object value) |
public static LocalContext get(QueueSession session)
public static LocalContext get(Message message)
public void setAttribute(Enum<?> key, Object value)
setAttribute
in interface Context
public void setAttribute(Class<?> typeIndexed, Object value)
setAttribute
in interface Context
public void setAttribute(String param, Object value)
setAttribute
in interface Context
public <T> T getAttribute(Class<T> type, Enum<?> key)
getAttribute
in interface Context
public <T> T getAttribute(Class<T> type, Class<?> typeIndexed)
getAttribute
in interface Context
public <T> T getAttribute(Class<T> type)
getAttribute
in interface Context
public <T> T getAttribute(Class<T> type, String param)
getAttribute
in interface Context
public boolean hasAttribute(String param)
hasAttribute
in interface Context
public Collection<String> getAttributeNames()
getAttributeNames
in interface Context
public Object removeAttribute(Enum<?> key)
removeAttribute
in interface Context
public Object removeAttribute(Class<?> typeIndexed)
removeAttribute
in interface Context
public Object removeAttribute(String param)
removeAttribute
in interface Context
public QueueSession getSession()
public void destroy()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.