Interface Environment
- All Superinterfaces:
Attributes
- All Known Implementing Classes:
Environment.Named
A named runtime environment containing a
ClassLoader and Attributes.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic, Attributes.Wrapper -
Field Summary
FieldsFields inherited from interface Attributes
NULL -
Method Summary
Modifier and TypeMethodDescriptionstatic Environmentstatic Environmentstatic Collection<Environment> getAll()getName()default voidRun aRunnablein the environment, i.e. with currentThread.getContextClassLoader()set togetClassLoader().static Environmentset(Environment environment) Methods inherited from interface 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
ClassLoaderfor the environment or if non set, then theClassLoaderthat loaded the environment implementation.
-
run
Run aRunnablein the environment, i.e. with currentThread.getContextClassLoader()set togetClassLoader().- Parameters:
runnable- TheRunnableto run in the environment.
-