TorqueBox 3.1.2

org.torquebox.core.injection.jndi
Class ManagedReferenceInjectableService

java.lang.Object
  extended by org.torquebox.core.injection.jndi.ManagedReferenceInjectableService
All Implemented Interfaces:
org.jboss.msc.service.Service<Object>, org.jboss.msc.value.Value<Object>

public class ManagedReferenceInjectableService
extends Object
implements org.jboss.msc.service.Service<Object>

Service which handles lifecycle for ManagedReference-based injections.

This service obtains the reference before injection, and releases it after un-injection, when the application is underployed.

Author:
Bob McWhirter

Field Summary
 
Fields inherited from interface org.jboss.msc.service.Service
NULL, NULL_VALUE
 
Constructor Summary
ManagedReferenceInjectableService()
           
 
Method Summary
 org.jboss.msc.inject.Injector<org.jboss.as.naming.ManagedReferenceFactory> getManagedReferenceFactoryInjector()
           
 Object 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

ManagedReferenceInjectableService

public ManagedReferenceInjectableService()
Method Detail

getValue

public Object getValue()
                throws IllegalStateException,
                       IllegalArgumentException
Specified by:
getValue in interface org.jboss.msc.value.Value<Object>
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<Object>
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<Object>

getManagedReferenceFactoryInjector

public org.jboss.msc.inject.Injector<org.jboss.as.naming.ManagedReferenceFactory> getManagedReferenceFactoryInjector()

TorqueBox 3.1.2

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