Package org.eclipse.jetty.util.component
Interface Environment
- All Superinterfaces:
Attributes
- All Known Implementing Classes:
Environment.Named
A named runtime environment containing a
ClassLoader
and Attributes
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic, Attributes.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULL
-
Method Summary
Modifier and TypeMethodDescriptionstatic Environment
static Environment
static Collection<Environment>
getAll()
getName()
default void
Run aRunnable
in the environment, i.e.static Environment
set
(Environment environment) Methods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttribute
-
Field Details
-
CORE
-
-
Method Details
-
getAll
-
get
-
ensure
-
set
-
getName
String getName()- Returns:
- The case-insensitive name of the environment.
-
getClassLoader
ClassLoader getClassLoader()- Returns:
- The
ClassLoader
for the environment or if non set, then theClassLoader
that loaded the environment implementation.
-
run
Run aRunnable
in the environment, i.e. with currentThread.getContextClassLoader()
set togetClassLoader()
.- Parameters:
runnable
- TheRunnable
to run in the environment.
-