Added useful method

This commit is contained in:
Luca Frosini 2023-01-19 12:00:15 +01:00
parent 86b4e14de4
commit c4bb0ffcf3
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import org.gcube.informationsystem.types.reference.Type;
public class Discovery {
public static void discover(SchemaAction schemaAction) throws Exception {
public static List<Package> discoverPackages(){
List<Package> packages = new ArrayList<Package>();
Class<Type> tdClz = Type.class;
@ -28,6 +28,11 @@ public class Discovery {
packages.addAll(registrationProvider.getPackagesToRegister());
}
return packages;
}
public static void discover(SchemaAction schemaAction) throws Exception {
List<Package> packages = Discovery.discoverPackages();
ElementSpecilizationDiscovery.manageISM(schemaAction , packages);
}