TorqueBox 3.1.2

org.torquebox.services.injection
Class InjectableService

java.lang.Object
  extended by org.torquebox.services.injection.InjectableService
All Implemented Interfaces:
org.jboss.msc.service.Service<org.jruby.runtime.builtin.IRubyObject>, org.jboss.msc.value.Value<org.jruby.runtime.builtin.IRubyObject>

public class InjectableService
extends Object
implements org.jboss.msc.service.Service<org.jruby.runtime.builtin.IRubyObject>

Injectable service for a service.

This service wraps a RubyService to extract the actual underlying IRubyObject for injection into other Ruby code.

.

Author:
Bob McWhirter

Field Summary
 
Fields inherited from interface org.jboss.msc.service.Service
NULL, NULL_VALUE
 
Constructor Summary
InjectableService(RubyService service)
           
 
Method Summary
 org.jruby.runtime.builtin.IRubyObject getValue()
           
 void start(org.jboss.msc.service.StartContext context)
           
 void stop(org.jboss.msc.service.StopContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectableService

public InjectableService(RubyService service)
Method Detail

getValue

public org.jruby.runtime.builtin.IRubyObject getValue()
                                               throws IllegalStateException,
                                                      IllegalArgumentException
Specified by:
getValue in interface org.jboss.msc.value.Value<org.jruby.runtime.builtin.IRubyObject>
Throws:
IllegalStateException
IllegalArgumentException

start

public void start(org.jboss.msc.service.StartContext context)
           throws org.jboss.msc.service.StartException
Specified by:
start in interface org.jboss.msc.service.Service<org.jruby.runtime.builtin.IRubyObject>
Throws:
org.jboss.msc.service.StartException

stop

public void stop(org.jboss.msc.service.StopContext context)
Specified by:
stop in interface org.jboss.msc.service.Service<org.jruby.runtime.builtin.IRubyObject>

TorqueBox 3.1.2

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