jfun.yan.etc.injection
Class TypeCaseInjection

java.lang.Object
  extended by jfun.yan.etc.injection.TypeCaseInjection
All Implemented Interfaces:
Injection

public class TypeCaseInjection
extends java.lang.Object
implements Injection

The Nut class for type casing Injection objects for different target types.

Author:
Ben Yu Dec 17, 2005 12:21:58 PM

Constructor Summary
TypeCaseInjection(java.lang.Class[] types, Injection[] cases)
           
 
Method Summary
 boolean inject(java.lang.Object obj)
          Inject dependency into an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeCaseInjection

public TypeCaseInjection(java.lang.Class[] types,
                         Injection[] cases)
Method Detail

inject

public boolean inject(java.lang.Object obj)
Description copied from interface: Injection
Inject dependency into an object.

Specified by:
inject in interface Injection
Parameters:
obj - the object.
Returns:
is this object injected by this Injection object?