org.drools.guvnor.server.builder
Class DeclaredTypesSorter
java.lang.Object
org.drools.guvnor.server.builder.DeclaredTypesSorter
public class DeclaredTypesSorter
- extends Object
Utility class to sort Declarative Model Asset DRL. An individual Declarative
Model can contain multiple Declarative Types. A Declarative Type can extend
another Declarative Type in either the same model or another. The DRL for a
Declarative Type needs to be added to the PackageBuilder before any those
that extend it.
Method Summary |
List<org.drools.guvnor.server.builder.DeclaredTypesSorter.DeclaredTypeAssetInheritanceInformation> |
sort(List<AssetItem> assets)
Utility method to split and sort all Declared Types into an ordered list
based upon dependencies. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeclaredTypesSorter
public DeclaredTypesSorter()
sort
public List<org.drools.guvnor.server.builder.DeclaredTypesSorter.DeclaredTypeAssetInheritanceInformation> sort(List<AssetItem> assets)
- Utility method to split and sort all Declared Types into an ordered list
based upon dependencies. Declarative Types that do not extend are listed
first then subsequent dependent children.
- Parameters:
assets
-
- Returns:
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.