diff --git a/src/main/java/org/wildfly/installationmanager/spi/InstallationManagerFactory.java b/src/main/java/org/wildfly/installationmanager/spi/InstallationManagerFactory.java index 0aeb9fe..897193d 100644 --- a/src/main/java/org/wildfly/installationmanager/spi/InstallationManagerFactory.java +++ b/src/main/java/org/wildfly/installationmanager/spi/InstallationManagerFactory.java @@ -33,6 +33,16 @@ public interface InstallationManagerFactory { */ InstallationManager create(Path installationDir, MavenOptions mavenOptions) throws Exception; + /** + * Creates InstallationManger for server instance located at {@code installationDir}. + * If the provided directory is empty, the manger needs to install the server before attempting any other operations. + * + * @param installationDir the directory where the server is installed + * @param mavenOptions the options to be used by the manager + * @return the InstallationManager instance + */ + InstallationManager create(Path installationDir, MavenOptions mavenOptions, Stability stability) throws Exception; + /** * Gets the name of InstallationManager instance * diff --git a/src/main/java/org/wildfly/installationmanager/spi/Stability.java b/src/main/java/org/wildfly/installationmanager/spi/Stability.java new file mode 100644 index 0000000..eaa1dc5 --- /dev/null +++ b/src/main/java/org/wildfly/installationmanager/spi/Stability.java @@ -0,0 +1,5 @@ +package org.wildfly.installationmanager.spi; + +public enum Stability { + Experimental, Preview, Community, Default +}