|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ThreadGroup
com.guiseframework.GuiseSessionThreadGroup
public class GuiseSessionThreadGroup
A thread group allocated to a Guise session. All threads accessing a Guise session should be part of the session's thread group.
This thread group also allows access to managed configurations using Configurator.
Thread-group-local configurations are retrieved by searching for a configuration first in the
Guise session using ConfigurationManaged.getConfiguration(Class), and second in the Guise
application using ConfigurationManaged.getConfiguration(Class).
| Constructor Summary | |
|---|---|
GuiseSessionThreadGroup(GuiseSession guiseSession)
Guise session constructor. |
|
| Method Summary | ||
|---|---|---|
|
getConfiguration(java.lang.Class<C> configurationClass)
Returns the configuration for the given configuration type. |
|
GuiseSession |
getGuiseSession()
The Guise session to which this thread group belongs and in which its related threads run. |
|
| Methods inherited from class java.lang.ThreadGroup |
|---|
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GuiseSessionThreadGroup(GuiseSession guiseSession)
guiseSession - The Guise session to which this thread group belongs and in which its related threads run.
java.lang.NullPointerException - if the given Guise session is null.| Method Detail |
|---|
public GuiseSession getGuiseSession()
public <C extends com.globalmentor.config.Configuration> C getConfiguration(java.lang.Class<C> configurationClass)
getConfiguration in interface com.globalmentor.config.ConfigurationManagedC - The type of configuration to retrieve.configurationClass - The class of configuration to retrieve.
null if there was no configuration for that class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||