TorqueBox 3.1.2

org.torquebox.core.injection.jndi
Class JNDIInjectableHandler

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

public class JNDIInjectableHandler
extends AbstractInjectableHandler

Handler for JNDI injectables.

This handler matches injections that are strings beginning with java:, such as:

   fetch( 'java:comp/env/whatever' )
 

Author:
Bob McWhirter

Field Summary
static String TYPE
           
 
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
JNDIInjectableHandler()
           
 
Method Summary
 Injectable handle(Object injection, boolean generic)
          Handle injection for an argument.
 boolean recognizes(Object injection)
          Determine if this handler recognizes the argument.
 
Methods inherited from class org.torquebox.core.injection.analysis.AbstractInjectableHandler
getJavaClassName, getRecognitionPriority, getString, getType, getValue, setRecognitionPriority, setType, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

JNDIInjectableHandler

public JNDIInjectableHandler()
Method Detail

handle

public Injectable handle(Object injection,
                         boolean generic)
Description copied from interface: InjectableHandler
Handle injection for an argument.

generic - Denotes if this is a generic or explicit injection of this type. (Unused?)
Returns:
The resulting injectable.

recognizes

public boolean recognizes(Object injection)
Description copied from interface: InjectableHandler
Determine if this handler recognizes the argument.

Parameters:
injection - The injection object.
Returns:
true if this handler recognizes the argument, otherwise false.

TorqueBox 3.1.2

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