TorqueBox 3.1.2

org.torquebox.core.component
Class AbstractRubyComponent

java.lang.Object
  extended by org.torquebox.core.component.AbstractRubyComponent
All Implemented Interfaces:
RubyComponent
Direct Known Subclasses:
JobComponent, MessageProcessorComponent, RackApplicationComponent, ServiceComponent, XAStompletComponent

public class AbstractRubyComponent
extends Object
implements RubyComponent


Constructor Summary
AbstractRubyComponent()
           
AbstractRubyComponent(org.jruby.runtime.builtin.IRubyObject rubyComponent)
           
 
Method Summary
protected  Object _callRubyMethod(Object target, String method, Object... args)
           
 Object _callRubyMethod(String method, Object... args)
           
protected  Object _callRubyMethodIfDefined(Object target, String method, Object... args)
           
 Object _callRubyMethodIfDefined(String method, Object... args)
           
protected  boolean _defined(Object target, String name)
           
 boolean _defined(String name)
           
protected  org.jruby.RubyModule getClass(String path)
           
 Object getOption(String name)
           
 Map<String,Object> getOptions()
           
protected  org.jruby.Ruby getRuby()
           
 org.jruby.runtime.builtin.IRubyObject getRubyComponent()
           
 void setNamespaceContextSelector(org.jboss.as.naming.context.NamespaceContextSelector namespaceContextSelector)
           
 void setOptions(Map<String,Object> options)
           
 void setRubyComponent(org.jruby.runtime.builtin.IRubyObject rubyComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRubyComponent

public AbstractRubyComponent()

AbstractRubyComponent

public AbstractRubyComponent(org.jruby.runtime.builtin.IRubyObject rubyComponent)
Method Detail

setOptions

public void setOptions(Map<String,Object> options)

getOptions

public Map<String,Object> getOptions()

getOption

public Object getOption(String name)

setRubyComponent

public void setRubyComponent(org.jruby.runtime.builtin.IRubyObject rubyComponent)

getRubyComponent

public org.jruby.runtime.builtin.IRubyObject getRubyComponent()

_callRubyMethod

protected Object _callRubyMethod(Object target,
                                 String method,
                                 Object... args)

_callRubyMethod

public Object _callRubyMethod(String method,
                              Object... args)

_callRubyMethodIfDefined

protected Object _callRubyMethodIfDefined(Object target,
                                          String method,
                                          Object... args)

_callRubyMethodIfDefined

public Object _callRubyMethodIfDefined(String method,
                                       Object... args)

_defined

protected boolean _defined(Object target,
                           String name)

_defined

public boolean _defined(String name)

getClass

protected org.jruby.RubyModule getClass(String path)

getRuby

protected org.jruby.Ruby getRuby()

setNamespaceContextSelector

public void setNamespaceContextSelector(org.jboss.as.naming.context.NamespaceContextSelector namespaceContextSelector)

TorqueBox 3.1.2

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