net.sf.tlc.ioc.impl
Class DependencyNode

java.lang.Object
  extended bynet.sf.tlc.ioc.impl.DependencyNode

public final class DependencyNode
extends java.lang.Object

A node in a class dependency tree.

Author:
aisrael

Constructor Summary
DependencyNode(java.lang.Class clazz)
          Construct a dependency tree node for the given class
 
Method Summary
 void addDependency(java.lang.reflect.Constructor constructor, DependencyNode[] deps)
          Add a dependency from the parent class upon the given class.
 java.lang.Class getClazz()
           
 DependencyNode[] getDependency(java.lang.reflect.Constructor constructor)
          Return the dependencies for the given constructor of this class.
 java.util.Iterator iterator()
           
 java.lang.String toString()
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyNode

public DependencyNode(java.lang.Class clazz)
Construct a dependency tree node for the given class

Parameters:
clazz - Class
Method Detail

getClazz

public java.lang.Class getClazz()
Returns:
the class this dependency node represents

addDependency

public void addDependency(java.lang.reflect.Constructor constructor,
                          DependencyNode[] deps)
Add a dependency from the parent class upon the given class.

Parameters:
constructor - Constructor
deps - DependencyNode[]

getDependency

public DependencyNode[] getDependency(java.lang.reflect.Constructor constructor)
Return the dependencies for the given constructor of this class.

Parameters:
constructor - Constructor
Returns:
DependencyNode[]

iterator

public java.util.Iterator iterator()
Returns:
Iterator

toString

public java.lang.String toString()
(non-Javadoc)

See Also:
Object.toString()


Copyright © 2005 TheLittleContainer. All Rights Reserved.