X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fstructure%2FStructureRegistry.java;h=71f80cb772f7018fd2c7d0ed32e4f18659c51af4;hb=9c864d891daf7e3d341b5c5996aeb3d3ab1a57be;hp=ed0fa592394a15d230947ea9d34742899d84689c;hpb=90b484c35a563691c0923011bb43e2a881db2d5e;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/StructureRegistry.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/StructureRegistry.java index ed0fa5923..71f80cb77 100644 --- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/StructureRegistry.java +++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/StructureRegistry.java @@ -2,8 +2,10 @@ package org.argeo.slc.core.structure; import java.util.List; +import org.argeo.slc.core.deploy.DeployedSystem; + /** Registry where the whole structure is stored. */ -public interface StructureRegistry { +public interface StructureRegistry

{ /** Read mode: the structure is only read. */ public static String READ = "READ"; /** All mode: everything is executed regardless of the active paths. */ @@ -12,16 +14,16 @@ public interface StructureRegistry { public static String ACTIVE = "STATUS_ACTIVE"; /** Adds an element to the registry. */ - public void register(StructurePath path, StructureElement element); + public void register(P path, StructureElement element); /** Lists all registered elements. */ public List listElements(); /** Lists all registered elements. */ - public List listPaths(); + public List

listPaths(); /** Gets a element based on its path. */ - public StructureElement getElement(StructurePath path); + public T getElement(P path); /** * Set the interpreter mode: read, all or active. @@ -45,11 +47,11 @@ public interface StructureRegistry { * Gets the list of active paths, which will be run if executed in * STATUS_ACTIVE mode. */ - public List getActivePaths(); + public List

getActivePaths(); /** * Sets the list of active path, which will be run if executed in * STATUS_ACTIVE mode. */ - public void setActivePaths(List activePaths); + public void setActivePaths(List

activePaths); }