Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.util
Class LocalContext

java.lang.Object
  extended by org.jboss.errai.bus.server.util.LocalContext
All Implemented Interfaces:
Context

public class LocalContext
extends Object
implements Context


Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static LocalContext get(QueueSession session)

get

public static LocalContext get(Message message)

setAttribute

public void setAttribute(Enum<?> key,
                         Object value)
Specified by:
setAttribute in interface Context

setAttribute

public void setAttribute(Class<?> typeIndexed,
                         Object value)
Specified by:
setAttribute in interface Context

setAttribute

public void setAttribute(String param,
                         Object value)
Specified by:
setAttribute in interface Context

getAttribute

public <T> T getAttribute(Class<T> type,
                          Enum<?> key)
Specified by:
getAttribute in interface Context

getAttribute

public <T> T getAttribute(Class<T> type,
                          Class<?> typeIndexed)
Specified by:
getAttribute in interface Context

getAttribute

public <T> T getAttribute(Class<T> type)
Specified by:
getAttribute in interface Context

getAttribute

public <T> T getAttribute(Class<T> type,
                          String param)
Specified by:
getAttribute in interface Context

hasAttribute

public boolean hasAttribute(String param)
Specified by:
hasAttribute in interface Context

getAttributeNames

public Collection<String> getAttributeNames()
Specified by:
getAttributeNames in interface Context

removeAttribute

public Object removeAttribute(Enum<?> key)
Specified by:
removeAttribute in interface Context

removeAttribute

public Object removeAttribute(Class<?> typeIndexed)
Specified by:
removeAttribute in interface Context

removeAttribute

public Object removeAttribute(String param)
Specified by:
removeAttribute in interface Context

getSession

public QueueSession getSession()

destroy

public void destroy()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.