| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | Returns: JRuby home path if exists, null when failed to find it.any instance to get a resource instance)
Deprecated
Tries to find JRuby home from the order of JRUBY_HOME environment variable, jruby.home System property, then "/META-INF/jruby.home" if jruby-complete.jar is used. |
| public static List | Returns: a list of load paths.
Deprecated
Tries to find load paths for ruby files and/or libraries. |
| public static String | |
| public static LocalVariableBehavior | Returns: a local variable behaviora default local variable behavior defaultBehavior)Gets a local variable behavior from System property. |
| public static LocalContextScope | Returns: one of three local context scopes.a default scope. defaultScope)Gets a local context scope from System property. |
| public static boolean | Returns: a local variable behaviora default local variable behavior defaultLaziness)Gets a local variable behavior from System property. |
| private static boolean | |
| public static void | setClassLoader(ScriptingContainer
ScriptingContainer to be set classloader container)Sets classloader based on System property. |
| public static void | setConfiguration(ScriptingContainer
ScriptingContainer to be set configurations. container)Sets configuration parameters given by System properties. |
| public static void | setJRubyHome(ScriptingContainer
ScriptingContainer to be set jruby home. container)
Deprecated
Sets JRuby home if it is given by a JRUBY_HOME environment variable, jruby.home system property, or jury.home in jruby-complete.jar |
| SystemPropertyCatcher | back to summary |
|---|---|
| public SystemPropertyCatcher() | |
| findFromJar | back to summary |
|---|---|
| public static String findFromJar(Object instance)
Deprecated
| |
| findJRubyHome | back to summary |
|---|---|
| public static String findJRubyHome(Object instance)
Deprecated
Tries to find JRuby home from the order of JRUBY_HOME environment variable, jruby.home System property, then "/META-INF/jruby.home" if jruby-complete.jar is used. | |
| findLoadPaths | back to summary |
|---|---|
| public static List Deprecated
Tries to find load paths for ruby files and/or libraries. This methods sees org.jruby.embed.class.path system property first, then java.class.path. | |
| getBaseDir | back to summary |
|---|---|
| public static String getBaseDir() Returns a possible base directory. PWD environment variables is looked up first, then user.dir System property second. This directory is used as a default value when base directory is not given.
| |
| getBehavior | back to summary |
|---|---|
| public static LocalVariableBehavior getBehavior(LocalVariableBehavior defaultBehavior) Gets a local variable behavior from System property. If no value is assigned to PropertyName.LOCALVARIABLE_BEHAVIOR, given default value is applied.
| |
| getScope | back to summary |
|---|---|
| public static LocalContextScope getScope(LocalContextScope defaultScope) Gets a local context scope from System property. If no value is assigned to PropertyName.LOCALCONTEXT_SCOPE, given default value is applied.
| |
| isLazy | back to summary |
|---|---|
| public static boolean isLazy(boolean defaultLaziness) Gets a local variable behavior from System property. If no value is assigned to PropertyName.LOCALVARIABLE_BEHAVIOR, given default value is applied.
| |
| matches | back to summary |
|---|---|
| private static boolean matches(final String name, final String pattern) | |
| setClassLoader | back to summary |
|---|---|
| public static void setClassLoader(ScriptingContainer container) Sets classloader based on System property. This is only used from JRubyEgnineFactory.
| |
| setConfiguration | back to summary |
|---|---|
| public static void setConfiguration(ScriptingContainer container) Sets configuration parameters given by System properties. Compile mode and Compat version can be set.
| |
| setJRubyHome | back to summary |
|---|---|
| public static void setJRubyHome(ScriptingContainer container)
Deprecated
Sets JRuby home if it is given by a JRUBY_HOME environment variable, jruby.home system property, or jury.home in jruby-complete.jar
| |