public class DependencyConfiguration extends java.lang.Object implements ToolkitFactory
ToolkitFactory.Utils| Modifier and Type | Method and Description | 
|---|---|
| void | add(Dependable Dependable) | 
| static <T extends Dependable> | clearDependencies(Interdependency interDep,
                 java.lang.Class<T> clazz) | 
| static NodeDependable[] | getAllJarDependables(Interdependency interdep)Get all the Jar dependables starting from a Profile and branching out to all
 its ProfileDependants. | 
| Dependable[] | getDependables() | 
| static <T extends Dependable> | getDependables(Interdependency interDep,
              java.lang.Class<T> type)Returns an unordered array of all dependencies of InterDep that implement or subclass a particular type. | 
| static <T extends Dependable> | getDependablesList(Interdependency interDep,
                  java.lang.Class<T> type) | 
| static DependencyConfiguration | getInstance(DependencyStorage storage) | 
| static DependencyConfiguration | getInstance(DependencyStorage storage,
           Context context) | 
| static NodeDependable[] | getJarDependables(Interdependency profile)Get the Jar Dependables of an Interdependency | 
| static ProfileDependable[] | getProfileDependables(Profile profile,
                     java.lang.Class<? extends Profile> sourceClass)Get all Profile Dependables that point to Profile of type sourceClass. | 
| java.util.Iterator<Dependable> | iterator() | 
| boolean | remove(Dependable dependable) | 
| void | removeAll() | 
| void | setDependables(Dependable[] dependables) | 
| static void | setDependencies(Interdependency interDep,
               Dependable[] dependables)Utility method to set all the dependencies on an Interdependency. | 
| static <T extends Dependable> | setDependencies(Interdependency interDep,
               T[] dependables,
               java.lang.Class<T> clazz)Sets only the sub-set of Dependables that match a particular type. | 
public static DependencyConfiguration getInstance(DependencyStorage storage)
public static DependencyConfiguration getInstance(DependencyStorage storage, Context context)
public void add(Dependable Dependable) throws InvalidDependableException, DependableOperationException
public boolean remove(Dependable dependable)
public void removeAll()
public Dependable[] getDependables()
public void setDependables(Dependable[] dependables)
public java.util.Iterator<Dependable> iterator()
public static <T extends Dependable> T[] getDependables(Interdependency interDep, java.lang.Class<T> type)
interDep - type - the super class or interface that should be implemented.public static ProfileDependable[] getProfileDependables(Profile profile, java.lang.Class<? extends Profile> sourceClass)
sourceClass - public static NodeDependable[] getJarDependables(Interdependency profile)
profile - public static NodeDependable[] getAllJarDependables(Interdependency interdep)
profile - public static <T extends Dependable> java.util.List<T> getDependablesList(Interdependency interDep, java.lang.Class<T> type)
public static void setDependencies(Interdependency interDep, Dependable[] dependables)
dependables - public static <T extends Dependable> T[] setDependencies(Interdependency interDep, T[] dependables, java.lang.Class<T> clazz)
interDep - dependables - the replacement set. All elements of this set should be of the same type.clazz - the type of the Dependable to setpublic static <T extends Dependable> T[] clearDependencies(Interdependency interDep, java.lang.Class<T> clazz)