TorqueBox 3.1.2

org.torquebox.core.injection.analysis
Class AbstractInjectableHandler

java.lang.Object
  extended by org.torquebox.core.injection.analysis.AbstractInjectableHandler
All Implemented Interfaces:
org.jboss.msc.service.Service<InjectableHandler>, org.jboss.msc.value.Value<InjectableHandler>, InjectableHandler
Direct Known Subclasses:
CDIInjectableHandler, JNDIInjectableHandler, PredeterminedInjectableHandler, QueueInjectableHandler, ServiceInjectableHandler, ServiceInjectableHandler, TopicInjectableHandler

public abstract class AbstractInjectableHandler
extends Object
implements InjectableHandler, org.jboss.msc.service.Service<InjectableHandler>


Field Summary
 
Fields inherited from interface org.torquebox.core.injection.analysis.InjectableHandler
RECOGNITION_PRIORITY
 
Fields inherited from interface org.jboss.msc.service.Service
NULL, NULL_VALUE
 
Constructor Summary
AbstractInjectableHandler(String type)
           
 
Method Summary
protected  String getJavaClassName(Object injection)
           
 int getRecognitionPriority()
          The handler's priority for #recognizes.
protected  String getString(Object injection)
           
 String getType()
          Retrieve the type of the handler.
 AbstractInjectableHandler getValue()
           
 void setRecognitionPriority(int priority)
           
 void setType(String type)
           
 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
 
Methods inherited from interface org.torquebox.core.injection.analysis.InjectableHandler
handle, recognizes
 

Constructor Detail

AbstractInjectableHandler

public AbstractInjectableHandler(String type)
Method Detail

setType

public void setType(String type)

getType

public String getType()
Description copied from interface: InjectableHandler
Retrieve the type of the handler.

Specified by:
getType in interface InjectableHandler
Returns:
The type of the handler.

getRecognitionPriority

public int getRecognitionPriority()
Description copied from interface: InjectableHandler
The handler's priority for #recognizes. Lower numbers (including negatives) fire first. Default is 0.

Specified by:
getRecognitionPriority in interface InjectableHandler

setRecognitionPriority

public void setRecognitionPriority(int priority)

getValue

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

getString

protected String getString(Object injection)

getJavaClassName

protected String getJavaClassName(Object injection)

TorqueBox 3.1.2

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