-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
2,366 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/AddonInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright 2013 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.manager; | ||
|
||
import java.io.File; | ||
import java.util.Set; | ||
|
||
import org.jboss.forge.addon.dependencies.DependencyNode; | ||
import org.jboss.forge.furnace.addons.AddonId; | ||
|
||
/** | ||
* Information about an addon | ||
* | ||
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | ||
* | ||
*/ | ||
public interface AddonInfo | ||
{ | ||
/** | ||
* @return Returns the addon that this object is all about | ||
*/ | ||
public AddonId getAddon(); | ||
|
||
/** | ||
* @return Returns list of required addons from {@link AddonInfo#getAddon()} | ||
*/ | ||
public Set<AddonInfo> getRequiredAddons(); | ||
|
||
/** | ||
* @return Returns list of optional addons from {@link AddonInfo#getAddon()} | ||
*/ | ||
public Set<AddonInfo> getOptionalAddons(); | ||
|
||
/** | ||
* @return the {@link File} resources associated with this addon (Additional dependencies) | ||
*/ | ||
public Set<File> getResources(); | ||
|
||
/** | ||
* Returns the {@link DependencyNode} for this Addon | ||
* | ||
* @return | ||
*/ | ||
public DependencyNode getDependencyNode(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/DisableRequest.java
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/InstallRequest.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/RemoveRequest.java
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...n-manager/api/src/main/java/org/jboss/forge/addon/manager/request/AddonActionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2013 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.manager.request; | ||
|
||
import org.jboss.forge.addon.manager.AddonInfo; | ||
|
||
/** | ||
* Super interface for actions targeted at a specific addon | ||
* | ||
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | ||
* | ||
*/ | ||
public interface AddonActionRequest | ||
{ | ||
/** | ||
* Target Addon | ||
*/ | ||
AddonInfo getRequestedAddonInfo(); | ||
|
||
/** | ||
* Execute the desired request | ||
*/ | ||
void perform(); | ||
} |
19 changes: 19 additions & 0 deletions
19
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/request/DeployRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright 2013 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.manager.request; | ||
|
||
/** | ||
* When an addon is installed, another addons could be required. This object returns the necessary information for the | ||
* installation of an addon to succeed, like required addons and dependencies | ||
* | ||
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | ||
* | ||
*/ | ||
public interface DeployRequest extends AddonActionRequest | ||
{ | ||
} |
20 changes: 20 additions & 0 deletions
20
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/request/DisableRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2013 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.manager.request; | ||
|
||
import org.jboss.forge.furnace.addons.AddonId; | ||
|
||
/** | ||
* This object is responsible for disabling an {@link AddonId}. | ||
* | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
*/ | ||
public interface DisableRequest extends AddonActionRequest | ||
{ | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
addon-manager/api/src/main/java/org/jboss/forge/addon/manager/request/EnableRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2013 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.manager.request; | ||
|
||
import org.jboss.forge.furnace.addons.AddonId; | ||
|
||
/** | ||
* This object is responsible for enabling an {@link AddonId}. | ||
* | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
*/ | ||
public interface EnableRequest extends AddonActionRequest | ||
{ | ||
|
||
} |
Oops, something went wrong.