TorqueBox 3.1.2

org.torquebox.web.rack
Class RackRuntimeInitializer

java.lang.Object
  extended by org.torquebox.core.runtime.BaseRuntimeInitializer
      extended by org.torquebox.web.rack.RackRuntimeInitializer
All Implemented Interfaces:
RuntimeInitializer
Direct Known Subclasses:
RailsRuntimeInitializer

public class RackRuntimeInitializer
extends BaseRuntimeInitializer

RuntimeInitializer for Ruby Rack applications.

Author:
Bob McWhirter

Field Summary
protected  RackMetaData rackAppMetaData
           
 
Constructor Summary
RackRuntimeInitializer(RubyAppMetaData rubyAppMetaData, RackMetaData rackMetaData)
           
 
Method Summary
protected  String getInitializerScript()
          Create the initializer script.
 String getRackEnv()
           
 void initialize(org.jruby.Ruby ruby, String runtimeContext)
           
protected  void setRuntimeType(org.jruby.Ruby ruby, String type)
           
 
Methods inherited from class org.torquebox.core.runtime.BaseRuntimeInitializer
getApplicationRoot, getRubyAppMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rackAppMetaData

protected RackMetaData rackAppMetaData
Constructor Detail

RackRuntimeInitializer

public RackRuntimeInitializer(RubyAppMetaData rubyAppMetaData,
                              RackMetaData rackMetaData)
Method Detail

getRackEnv

public String getRackEnv()

initialize

public void initialize(org.jruby.Ruby ruby,
                       String runtimeContext)
                throws Exception
Specified by:
initialize in interface RuntimeInitializer
Overrides:
initialize in class BaseRuntimeInitializer
Throws:
Exception

setRuntimeType

protected void setRuntimeType(org.jruby.Ruby ruby,
                              String type)

getInitializerScript

protected String getInitializerScript()
Create the initializer script.

Returns:
The initializer script.

TorqueBox 3.1.2

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