TorqueBox 3.1.2

org.torquebox.core.util
Class JRubyConstants

java.lang.Object
  extended by org.torquebox.core.util.JRubyConstants

public class JRubyConstants
extends Object

Util methods for accessing JRuby's CONSTANTS via reflection. This is necessary since String constants get inlined at compile time, and a user may bring their own, different JRuby version via JRUBY_HOME.

Author:
Toby Crawley

Constructor Summary
JRubyConstants()
           
 
Method Summary
static Object getConstant(String name)
           
static String getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyConstants

public JRubyConstants()
Method Detail

getVersion

public static String getVersion()

getConstant

public static Object getConstant(String name)

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.