TorqueBox 3.1.2

org.torquebox.core.injection.analysis
Interface InjectableHandler

All Known Implementing Classes:
AbstractInjectableHandler, CDIInjectableHandler, CorePredeterminedInjectableHandler, JNDIInjectableHandler, MessagingPredeterminedInjectableHandler, PredeterminedInjectableHandler, QueueInjectableHandler, ServiceInjectableHandler, ServiceInjectableHandler, StompPredeterminedInjectableHandler, TopicInjectableHandler

public interface InjectableHandler

Handle capable of recognizing and configuring injection for a class of injectable.

Author:
Bob McWhirter

Field Summary
static Comparator<InjectableHandler> RECOGNITION_PRIORITY
           
 
Method Summary
 int getRecognitionPriority()
          The handler's priority for #recognizes.
 String getType()
          Retrieve the type of the handler.
 Injectable handle(Object injection, boolean generic)
          Handle injection for an argument.
 boolean recognizes(Object injection)
          Determine if this handler recognizes the argument.
 

Field Detail

RECOGNITION_PRIORITY

static final Comparator<InjectableHandler> RECOGNITION_PRIORITY
Method Detail

getType

String getType()
Retrieve the type of the handler.

Returns:
The type of the handler.

recognizes

boolean recognizes(Object injection)
Determine if this handler recognizes the argument.

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

handle

Injectable handle(Object injection,
                  boolean generic)
Handle injection for an argument.

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

getRecognitionPriority

int getRecognitionPriority()
The handler's priority for #recognizes. Lower numbers (including negatives) fire first. Default is 0.


TorqueBox 3.1.2

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