setEnvironment(Map) this will be honored.
It also allows to add a classloaders to LOAD_PATH or GEM_PATH.
This container also sets option classloader.delegate to false, i.e. the JRubyClassloader
for each runtime will lookup classes first on itself before looking into the parent
classloader.
Warning
this can give problems when joda-time is used inside the
JRubyClassloader or with current version of nokogiri (1.6.7.2) as it uses
(sun-)jdk classes which conflicts with classes nokogiri loaded into the
JRubyClassloader.
With any classloader related problem the first thing is to try
container.getProvider().getRubyInstanceConfig().setClassloaderDelegate(true); to solve it.
| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | setEnvironment(Map<K, V>
a new map of environment variables. environment)Overrides org. Implements org. Changes an environment variables' map. |
| URI_CLASSLOADER | back to summary |
|---|---|
| private static final String URI_CLASSLOADER | |
| IsolatedScriptingContainer | back to summary |
|---|---|
| public IsolatedScriptingContainer() | |
| IsolatedScriptingContainer | back to summary |
|---|---|
| public IsolatedScriptingContainer(LocalContextScope scope, LocalVariableBehavior behavior) | |
| IsolatedScriptingContainer | back to summary |
|---|---|
| public IsolatedScriptingContainer(LocalContextScope scope) | |
| IsolatedScriptingContainer | back to summary |
|---|---|
| public IsolatedScriptingContainer(LocalVariableBehavior behavior) | |
| IsolatedScriptingContainer | back to summary |
|---|---|
| public IsolatedScriptingContainer(LocalContextScope scope, LocalVariableBehavior behavior, boolean lazy) | |
| setEnvironment | back to summary |
|---|---|
| public void setEnvironment(Map<K, V> environment) Overrides org. Implements org. Doc from org. Changes an environment variables' map. Call this method before you use put/get, runScriptlet, and parse methods so that initial configurations will work. | |