public class AppContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DISPOSED_PROPERTY_NAME |
static Object |
EVENT_QUEUE_COND_KEY |
static Object |
EVENT_QUEUE_KEY |
static Object |
EVENT_QUEUE_LOCK_KEY |
static String |
GUI_DISPOSED |
| Constructor and Description |
|---|
AppContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
dispose() |
Object |
get(Object key) |
static AppContext |
getAppContext() |
static Set<AppContext> |
getAppContexts()
Returns a set containing all
AppContexts. |
ClassLoader |
getContextClassLoader() |
PropertyChangeListener[] |
getPropertyChangeListeners() |
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName) |
static <T> T |
getSoftReferenceValue(Object key,
Supplier<T> supplier) |
ThreadGroup |
getThreadGroup() |
boolean |
isDisposed() |
static boolean |
isMainContext(AppContext ctx) |
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
public static final Object EVENT_QUEUE_KEY
public static final Object EVENT_QUEUE_LOCK_KEY
public static final Object EVENT_QUEUE_COND_KEY
public static final String DISPOSED_PROPERTY_NAME
public static final String GUI_DISPOSED
public static Set<AppContext> getAppContexts()
AppContexts.public boolean isDisposed()
public static AppContext getAppContext()
public static boolean isMainContext(AppContext ctx)
public void dispose()
throws IllegalThreadStateException
IllegalThreadStateExceptionpublic ThreadGroup getThreadGroup()
public ClassLoader getContextClassLoader()
public PropertyChangeListener[] getPropertyChangeListeners()
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
Copyright © 2018 JBoss by Red Hat. All rights reserved.