[jboss-cvs] JBossAS SVN: r88974 - in branches/Branch_5_x/profileservice/src/main/org/jboss: profileservice and 4 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 15 22:50:24 EDT 2009


Author: scott.stark at jboss.org
Date: 2009-05-15 22:50:24 -0400 (Fri, 15 May 2009)
New Revision: 88974

Added:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/MBeanDeploymentNameBuilder.java
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/ManagedMBeanDeploymentFactory.java
Removed:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservic/
Modified:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyDeploymentInfo.java
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyManagedDeploymentFactory.java
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/ComplexMBeanDeploymentNameBuilder.java
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/SimpleMBeanDeploymentNameBuilder.java
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/views/MBeanProfileView.java
Log:
Change the org.jboss.profileservic.spi package to org.jboss.profileservice.spi

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java	2009-05-16 02:33:19 UTC (rev 88973)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -89,15 +89,15 @@
 import org.jboss.metatype.api.values.MetaValue;
 import org.jboss.metatype.api.values.MetaValueFactory;
 import org.jboss.metatype.api.values.SimpleValue;
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory;
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory.MBeanComponent;
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory.MBeanDeployment;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory;
 import org.jboss.profileservice.spi.NoSuchDeploymentException;
 import org.jboss.profileservice.spi.NoSuchProfileException;
 import org.jboss.profileservice.spi.Profile;
 import org.jboss.profileservice.spi.ProfileDeployment;
 import org.jboss.profileservice.spi.ProfileKey;
 import org.jboss.profileservice.spi.ProfileService;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory.MBeanComponent;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory.MBeanDeployment;
 import org.jboss.system.server.profileservice.attachments.AttachmentStore;
 import org.jboss.system.server.profileservice.repository.AbstractProfileDeployment;
 

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyDeploymentInfo.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyDeploymentInfo.java	2009-05-16 02:33:19 UTC (rev 88973)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyDeploymentInfo.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -26,7 +26,7 @@
 import javax.management.ObjectName;
 
 import org.jboss.managed.api.ComponentType;
-import org.jboss.profileservic.spi.MBeanDeploymentNameBuilder;
+import org.jboss.profileservice.spi.MBeanDeploymentNameBuilder;
 
 /**
  * Encapsulation of a collection of mbeans that should be exposed as a

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyManagedDeploymentFactory.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyManagedDeploymentFactory.java	2009-05-16 02:33:19 UTC (rev 88973)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ProxyManagedDeploymentFactory.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -29,7 +29,7 @@
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
 
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory;
 
 /**
  * A ManagedDeploymentFactory that acts as a facade on top of mbean deployments

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/ComplexMBeanDeploymentNameBuilder.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/ComplexMBeanDeploymentNameBuilder.java	2009-05-16 02:33:19 UTC (rev 88973)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/ComplexMBeanDeploymentNameBuilder.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -26,7 +26,7 @@
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
 
-import org.jboss.profileservic.spi.MBeanDeploymentNameBuilder;
+import org.jboss.profileservice.spi.MBeanDeploymentNameBuilder;
 
 /**
  * An MBeanDeploymentNameBuilder that supports multiple keys, prefix, suffix

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/SimpleMBeanDeploymentNameBuilder.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/SimpleMBeanDeploymentNameBuilder.java	2009-05-16 02:33:19 UTC (rev 88973)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/mbean/SimpleMBeanDeploymentNameBuilder.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -24,7 +24,7 @@
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
 
-import org.jboss.profileservic.spi.MBeanDeploymentNameBuilder;
+import org.jboss.profileservice.spi.MBeanDeploymentNameBuilder;
 
 /**
  * A simple MBeanDeploymentNameBuilder that returns the value of the key

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/views/MBeanProfileView.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/views/MBeanProfileView.java	2009-05-16 02:33:19 UTC (rev 88973)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/views/MBeanProfileView.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -37,13 +37,13 @@
 import org.jboss.managed.api.annotation.ViewUse;
 import org.jboss.managed.plugins.ManagedDeploymentImpl;
 import org.jboss.metadata.spi.MetaData;
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory;
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory.MBeanComponent;
-import org.jboss.profileservic.spi.ManagedMBeanDeploymentFactory.MBeanDeployment;
 import org.jboss.profileservice.management.MBeanManagedObjectFactory;
 import org.jboss.profileservice.management.ManagedOperationProxyFactory;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory;
 import org.jboss.profileservice.spi.Profile;
 import org.jboss.profileservice.spi.ProfileKey;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory.MBeanComponent;
+import org.jboss.profileservice.spi.ManagedMBeanDeploymentFactory.MBeanDeployment;
 
 /**
  * @author Scott.Stark at jboss.org

Copied: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/MBeanDeploymentNameBuilder.java (from rev 88970, branches/Branch_5_x/profileservice/src/main/org/jboss/profileservic/spi/MBeanDeploymentNameBuilder.java)
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/MBeanDeploymentNameBuilder.java	                        (rev 0)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/MBeanDeploymentNameBuilder.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.profileservice.spi;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+/**
+ * An spi for mapping mbean names to a deployment name.
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public interface MBeanDeploymentNameBuilder
+{
+   /**
+    * Generate a deployment name from a given mbean name.
+    * 
+    * @param name - an mbean name of a ManagedObject to include in the deployment
+    * @param server - the MBeanServer under which name is registered
+    * @return - the name of the deployment the mbean should belong to
+    */
+   public String getName(ObjectName name, MBeanServer server);
+}

Copied: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/ManagedMBeanDeploymentFactory.java (from rev 88970, branches/Branch_5_x/profileservice/src/main/org/jboss/profileservic/spi/ManagedMBeanDeploymentFactory.java)
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/ManagedMBeanDeploymentFactory.java	                        (rev 0)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/spi/ManagedMBeanDeploymentFactory.java	2009-05-16 02:50:24 UTC (rev 88974)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.profileservice.spi;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.managed.api.ManagedDeployment;
+import org.jboss.managed.api.annotation.ViewUse;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public interface ManagedMBeanDeploymentFactory
+{
+   public static class MBeanDeployment
+   {
+      String name;
+      Collection <MBeanComponent> components;
+      public MBeanDeployment(String name)
+      {
+         this(name, new ArrayList<MBeanComponent>());
+      }
+      public MBeanDeployment(String name, Collection <MBeanComponent> components)
+      {
+         this.name = name;
+         this.components = components;
+      }
+      public String getName()
+      {
+         return name;
+      }
+      public Collection<MBeanComponent> getComponents()
+      {
+         return components;
+      }
+      public void setComponents(Collection<MBeanComponent> components)
+      {
+         this.components = components;
+      }
+      public synchronized void addComponent(MBeanComponent comp)
+      {
+         if(components == null)
+            components = new ArrayList<MBeanComponent>();
+         components.add(comp);
+      }
+      public String toString()
+      {
+         return "MBeanDeployment("+name+"), "+components;
+      }
+   }
+   public static class MBeanComponent
+   {
+      String type;
+      String subtype;
+      ObjectName name;
+      public MBeanComponent(ObjectName name, String type, String subtype)
+      {
+         super();
+         this.type = type;
+         this.subtype = subtype;
+         this.name = name;
+      }
+      public ObjectName getName()
+      {
+         return name;
+      }
+      public String getType()
+      {
+         return type;
+      }
+      public String getSubtype()
+      {
+         return subtype;
+      }
+      public String toString()
+      {
+         return "MBeanComponent("+name+","+type+","+subtype+")";
+      }
+   }
+   public String getFactoryName();
+   public Collection<MBeanDeployment> getDeployments(MBeanServer mbeanServer);
+   public String getDefaultViewUse();
+}




More information about the jboss-cvs-commits mailing list