jfun.yan.etc.injection
Class InjectionUtils

java.lang.Object
  extended by jfun.yan.etc.injection.InjectionUtils

public class InjectionUtils
extends java.lang.Object

Utility classes for post-injection.

Author:
Ben Yu Dec 17, 2005 11:31:39 AM

Constructor Summary
InjectionUtils()
           
 
Method Summary
static Component returnTrue(Component c)
          Make the Component always returns "true".
static Component toInjection(Component c)
          Adapt any Component to be one that instantiates Injection instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectionUtils

public InjectionUtils()
Method Detail

toInjection

public static Component toInjection(Component c)
Adapt any Component to be one that instantiates Injection instance.

Parameters:
c - the Component.
Returns:
the Component that instantiates Injection instance.

returnTrue

public static Component returnTrue(Component c)
Make the Component always returns "true".

Parameters:
c - the Component to transform.
Returns:
the new Component object that returns true.