net.sf.tlc.ioc.impl
Interface DependencyManager

All Known Implementing Classes:
DefaultDependencyManager

public interface DependencyManager

TheLittleContainer dependency manager interface.

Author:
aisrael

Method Summary
 boolean canConstructClass(java.lang.Class c)
          Returns true if the class can be constructed fulfilling any one of its constructors (notably, the default or empty constructor).
 boolean canConstructClass(java.lang.Class c, java.lang.reflect.Constructor constructor)
          Returns true if the class can be constructed fulfilling the given constructor.
 boolean hasClass(java.lang.Class c)
          Returns true if the registry contains the given class.
 java.lang.Class[] listAllImplementingClasses(java.lang.Class c)
          Returns a list (Class[]) of all classes registered that fufill the given class (either extends the superclass or implements the interface)
 void registerClass(java.lang.Class c)
          Registers a class with the DependencyManager
 

Method Detail

registerClass

public void registerClass(java.lang.Class c)
Registers a class with the DependencyManager

Parameters:
c - Class

hasClass

public boolean hasClass(java.lang.Class c)
Returns true if the registry contains the given class.

Parameters:
c - Class
Returns:
true if the registry contains the given class

listAllImplementingClasses

public java.lang.Class[] listAllImplementingClasses(java.lang.Class c)
Returns a list (Class[]) of all classes registered that fufill the given class (either extends the superclass or implements the interface)

Parameters:
c - Class
Returns:
Class[]

canConstructClass

public boolean canConstructClass(java.lang.Class c,
                                 java.lang.reflect.Constructor constructor)
Returns true if the class can be constructed fulfilling the given constructor.

Parameters:
c - Class
constructor - Constructor
Returns:
true if the class can be constructed fulfilling the given constructor

canConstructClass

public boolean canConstructClass(java.lang.Class c)
Returns true if the class can be constructed fulfilling any one of its constructors (notably, the default or empty constructor).

Parameters:
c - Class
Returns:
true if the class can be constructed fulfilling any one of its constructors


Copyright © 2005 TheLittleContainer. All Rights Reserved.