Added useful method
This commit is contained in:
parent
86b4e14de4
commit
c4bb0ffcf3
|
@ -10,7 +10,7 @@ import org.gcube.informationsystem.types.reference.Type;
|
||||||
|
|
||||||
public class Discovery {
|
public class Discovery {
|
||||||
|
|
||||||
public static void discover(SchemaAction schemaAction) throws Exception {
|
public static List<Package> discoverPackages(){
|
||||||
List<Package> packages = new ArrayList<Package>();
|
List<Package> packages = new ArrayList<Package>();
|
||||||
|
|
||||||
Class<Type> tdClz = Type.class;
|
Class<Type> tdClz = Type.class;
|
||||||
|
@ -28,6 +28,11 @@ public class Discovery {
|
||||||
packages.addAll(registrationProvider.getPackagesToRegister());
|
packages.addAll(registrationProvider.getPackagesToRegister());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return packages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void discover(SchemaAction schemaAction) throws Exception {
|
||||||
|
List<Package> packages = Discovery.discoverPackages();
|
||||||
ElementSpecilizationDiscovery.manageISM(schemaAction , packages);
|
ElementSpecilizationDiscovery.manageISM(schemaAction , packages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue