[jboss-cvs] JBossAS SVN: r59759 - trunk/system/src/main/org/jboss/deployers/spi/management.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 18 07:02:10 EST 2007
Author: scott.stark at jboss.org
Date: 2007-01-18 07:02:10 -0500 (Thu, 18 Jan 2007)
New Revision: 59759
Modified:
trunk/system/src/main/org/jboss/deployers/spi/management/DeploymentTemplateInfo.java
trunk/system/src/main/org/jboss/deployers/spi/management/ManagementView.java
Log:
Change the deployment template to use a Map<String,ManagedProperty>
Modified: trunk/system/src/main/org/jboss/deployers/spi/management/DeploymentTemplateInfo.java
===================================================================
--- trunk/system/src/main/org/jboss/deployers/spi/management/DeploymentTemplateInfo.java 2007-01-18 12:01:21 UTC (rev 59758)
+++ trunk/system/src/main/org/jboss/deployers/spi/management/DeploymentTemplateInfo.java 2007-01-18 12:02:10 UTC (rev 59759)
@@ -21,7 +21,7 @@
*/
package org.jboss.deployers.spi.management;
-import java.util.Set;
+import java.util.Map;
import org.jboss.managed.api.ManagedProperty;
@@ -35,5 +35,5 @@
{
public String getName();
public String getDescription();
- public Set<ManagedProperty> getProperties();
+ public Map<String, ManagedProperty> getProperties();
}
Modified: trunk/system/src/main/org/jboss/deployers/spi/management/ManagementView.java
===================================================================
--- trunk/system/src/main/org/jboss/deployers/spi/management/ManagementView.java 2007-01-18 12:01:21 UTC (rev 59758)
+++ trunk/system/src/main/org/jboss/deployers/spi/management/ManagementView.java 2007-01-18 12:02:10 UTC (rev 59759)
@@ -22,13 +22,18 @@
package org.jboss.deployers.spi.management;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
import java.util.Set;
import org.jboss.managed.api.ManagedObject;
+import org.jboss.managed.api.ManagedProperty;
import org.jboss.profileservice.spi.NoSuchDeploymentException;
import org.jboss.profileservice.spi.ProfileKey;
import org.jboss.profileservice.spi.NoSuchProfileException;
import org.jboss.profileservice.spi.Profile.DeploymentPhase;
+import org.jboss.util.graph.Graph;
/**
* The management view plugin spi for querying profiles for the
@@ -40,6 +45,22 @@
public interface ManagementView
{
/**
+ * Get the names of the deployment in the profile.
+ * @param key - the profile containing the deployment
+ */
+ public Set<String> getDeploymentNames(ProfileKey key)
+ throws NoSuchProfileException;
+
+ /**
+ * Get the names of the deployment in the profile that have the
+ * given deployment type.
+ * @param key - the profile containing the deployment
+ * @param type - the deployment type
+ */
+ public Set<String> getDeploymentNamesForType(ProfileKey key, String type)
+ throws NoSuchProfileException;
+
+ /**
* Obtain the top-level management view for a deployment. This is
* done by identifying all DeploymentBeans annotated with
* @link{org.jboss.annotation.management.ManagedObject}
@@ -52,19 +73,12 @@
* @throws NoSuchProfileException
* @throws NoSuchDeploymentException
*/
- public ManagedObject getView(ProfileKey key, String deploymentName, DeploymentPhase phase)
+ public Graph<Map<String, ManagedObject>> getView(ProfileKey key, String deploymentName, DeploymentPhase phase)
throws NoSuchProfileException, NoSuchDeploymentException, Exception;
+ public void setView(ProfileKey key, String deploymentName, HashMap<String, ManagedProperty> view)
+ throws NoSuchProfileException, IOException;
/**
- * Get the names of the deployment in the profile that have the
- * given deployment type.
- * @param key - the profile containing the deployment
- * @param type - the deployment type
- */
- public Set<String> getDeploymentNamesForType(ProfileKey key, String type)
- throws NoSuchProfileException;
-
- /**
* Get the registered DeploymentTemplate names.
*
* TODO: probably needs a Map<String, DeploymentType> notion
More information about the jboss-cvs-commits
mailing list