org.stjs.generator
Class DependencyCollection

java.lang.Object
  extended by org.stjs.generator.DependencyCollection

public class DependencyCollection
extends Object

This class is used to arrange the list of all dependencies coming from the root classes, such that classes depend on other classes found in the dependency list before they appear. This can be used for example to build the include list of the scripts for a given html page. As in Java cyclic dependency is possible the list may be incorrect.

Author:
acraciun

Field Summary
static Comparator<Class<?>> DEPENDENCY_COMPARATOR
           
 
Constructor Summary
DependencyCollection(ClassWithJavascript root)
           
DependencyCollection(List<ClassWithJavascript> roots)
           
 
Method Summary
 List<ClassWithJavascript> orderAllDependencies(ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPENDENCY_COMPARATOR

public static final Comparator<Class<?>> DEPENDENCY_COMPARATOR
Constructor Detail

DependencyCollection

public DependencyCollection(List<ClassWithJavascript> roots)

DependencyCollection

public DependencyCollection(ClassWithJavascript root)
Method Detail

orderAllDependencies

public List<ClassWithJavascript> orderAllDependencies(ClassLoader classLoader)


Copyright © 2014. All Rights Reserved.