public class EnvironmentImpl extends Object implements Environment
| Constructor and Description |
|---|
EnvironmentImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cloak()
Hides all current environment values, making the Environment object appear empty, until
a call to
Environment.decloak()} restores the original state. |
void |
decloak()
Restores state previously hidden by
Environment.cloak()}. |
<T> T |
peek(Class<T> type)
Peeks at the current top of the indicated stack.
|
<T> T |
peekRequired(Class<T> type)
Peeks at the current top of the indicated stack (which must have a non-null value).
|
<T> T |
pop(Class<T> type)
Removes and returns the top environmental object of the selected type.
|
<T> T |
push(Class<T> type,
T instance)
Pushes a new service onto the stack.
|
void |
threadDidCleanup() |
public EnvironmentImpl()
public <T> T peek(Class<T> type)
Environmentpeek in interface EnvironmentT - the type of environmental objecttype - class used to select the objectpublic <T> T peekRequired(Class<T> type)
EnvironmentpeekRequired in interface EnvironmentT - the type of environmental objecttype - class used to select the objectpublic <T> T pop(Class<T> type)
Environmentpop in interface EnvironmentT - the type of environmental objecttype - class used to select the objectpublic <T> T push(Class<T> type, T instance)
Environmentpush in interface EnvironmentT - the type of environmental objecttype - class used to select the objectinstance - the service objectpublic void threadDidCleanup()
public void cloak()
EnvironmentEnvironment.decloak()} restores the original state.cloak in interface EnvironmentTapestryConstants.RESPONSE_RENDERERpublic void decloak()
EnvironmentEnvironment.cloak()}.decloak in interface EnvironmentTapestryConstants.RESPONSE_RENDERER5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.