ItEr24S08CUAsignacionGrupoRecursosAPlanificacionItEr23S10: ScriptDependenciesSorter now implements IScriptsRegister
This commit is contained in:
parent
3e360a5373
commit
e5bf394986
2 changed files with 15 additions and 1 deletions
|
|
@ -0,0 +1,8 @@
|
|||
package org.zkoss.ganttz.util.script;
|
||||
|
||||
public interface IScriptsRegister {
|
||||
|
||||
public void register(Class<?> klassContainingScripts)
|
||||
throws IllegalArgumentException;
|
||||
|
||||
}
|
||||
|
|
@ -12,7 +12,7 @@ import java.util.Set;
|
|||
|
||||
import org.apache.commons.lang.Validate;
|
||||
|
||||
public class ScriptDependenciesSorter {
|
||||
public class ScriptDependenciesSorter implements IScriptsRegister {
|
||||
|
||||
private List<ScriptDependency> allScripts = new ArrayList<ScriptDependency>();
|
||||
|
||||
|
|
@ -107,4 +107,10 @@ public class ScriptDependenciesSorter {
|
|||
return stringFields;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void register(Class<?> klassContainingScripts)
|
||||
throws IllegalArgumentException {
|
||||
addAll(extractFrom(klassContainingScripts));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue