[jboss-cvs] JBossAS SVN: r59029 - in trunk/system/src/main/org/jboss/system/server/profileservice: . basic
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 13 23:02:31 EST 2006
Author: scott.stark at jboss.org
Date: 2006-12-13 23:02:28 -0500 (Wed, 13 Dec 2006)
New Revision: 59029
Added:
trunk/system/src/main/org/jboss/system/server/profileservice/basic/
trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java
Removed:
trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java
Log:
Move the initial ProfileServiceImpl to a basic subpackage
Deleted: trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java 2006-12-14 02:29:07 UTC (rev 59028)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java 2006-12-14 04:02:28 UTC (rev 59029)
@@ -1,126 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * 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.system.server.profileservice;
-
-import java.io.IOException;
-
-import org.jboss.deployers.spi.management.ManagementView;
-import org.jboss.profileservice.spi.NoSuchProfileException;
-import org.jboss.profileservice.spi.Profile;
-import org.jboss.profileservice.spi.ProfileKey;
-import org.jboss.profileservice.spi.ProfileService;
-import org.jboss.system.server.profile.basic.ProfileImpl;
-
-
-/**
- * An initial ProfileService impl for loading server deployments.
- *
- * @author Scott.Stark at jboss.org
- * @version $Revision$
- */
-public class ProfileServiceImpl
- implements ProfileService
-{
- private String name;
- private String profileRoot;
- private Profile defaultImpl;
- private ManagementView mgtView;
-
- public ProfileServiceImpl(String name) throws IOException
- {
- this.name = name;
- mgtView = new ManagementViewImpl(this);
- }
- // Properties ------------------------
-
- public String getName()
- {
- return this.name;
- }
- public void setName(String name)
- {
- this.name = name;
- }
- public String getProfileRoot()
- {
- return this.profileRoot;
- }
- public void setProfileRoot(String profileRoot)
- {
- this.profileRoot = profileRoot;
- }
-
- public void start()
- {
- defaultImpl = new ProfileImpl(profileRoot, name);
- }
-
- // ProfileService implementation --------------------
- public String[] getDomains()
- {
- String[] domains = {ProfileKey.DEFAULT};
- return domains;
- }
-
- public ProfileKey[] getProfileKeys()
- {
- ProfileKey[] keys = {new ProfileKey(null)};
- return keys;
- }
-
- /**
- * Always returns the default profile.
- */
- public Profile getProfile(ProfileKey key)
- throws NoSuchProfileException
- {
- return defaultImpl;
- }
-
- public String[] getProfileDeploymentNames(ProfileKey key)
- throws NoSuchProfileException
- {
- String[] names = {"default"};
- return names;
- }
-
- public ManagementView getViewManager()
- {
- return mgtView;
- }
- public void setViewManager(ManagementView mgtView)
- {
- this.mgtView = mgtView;
- }
-
- // Admin of profiles @todo could be an option plugin
- public Profile newProfile(ProfileKey key)
- {
- return new ProfileImpl(profileRoot, name);
- }
-
- public void removeProfile(ProfileKey key)
- throws NoSuchProfileException
- {
- }
-}
-
Copied: trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java (from rev 59017, trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java)
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java 2006-12-13 18:16:51 UTC (rev 59017)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java 2006-12-14 04:02:28 UTC (rev 59029)
@@ -0,0 +1,126 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.system.server.profileservice.basic;
+
+import java.io.IOException;
+
+import org.jboss.deployers.spi.management.ManagementView;
+import org.jboss.profileservice.spi.NoSuchProfileException;
+import org.jboss.profileservice.spi.Profile;
+import org.jboss.profileservice.spi.ProfileKey;
+import org.jboss.profileservice.spi.ProfileService;
+import org.jboss.system.server.profile.basic.ProfileImpl;
+
+
+/**
+ * An basic ProfileService impl for loading server deployments
+ * that uses the basic ProfileImpl.
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class ProfileServiceImpl
+ implements ProfileService
+{
+ private String name;
+ private String profileRoot;
+ private Profile defaultImpl;
+ private ManagementView mgtView;
+
+ public ProfileServiceImpl(String name) throws IOException
+ {
+ this.name = name;
+ }
+ // Properties ------------------------
+
+ public String getName()
+ {
+ return this.name;
+ }
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+ public String getProfileRoot()
+ {
+ return this.profileRoot;
+ }
+ public void setProfileRoot(String profileRoot)
+ {
+ this.profileRoot = profileRoot;
+ }
+
+ public void start()
+ {
+ defaultImpl = new ProfileImpl(profileRoot, name);
+ }
+
+ // ProfileService implementation --------------------
+ public String[] getDomains()
+ {
+ String[] domains = {ProfileKey.DEFAULT};
+ return domains;
+ }
+
+ public ProfileKey[] getProfileKeys()
+ {
+ ProfileKey[] keys = {new ProfileKey(null)};
+ return keys;
+ }
+
+ /**
+ * Always returns the default profile.
+ */
+ public Profile getProfile(ProfileKey key)
+ throws NoSuchProfileException
+ {
+ return defaultImpl;
+ }
+
+ public String[] getProfileDeploymentNames(ProfileKey key)
+ throws NoSuchProfileException
+ {
+ String[] names = {"default"};
+ return names;
+ }
+
+ public ManagementView getViewManager()
+ {
+ return mgtView;
+ }
+ public void setViewManager(ManagementView mgtView)
+ {
+ this.mgtView = mgtView;
+ }
+
+ // Admin of profiles @todo could be an option plugin
+ public Profile newProfile(ProfileKey key)
+ {
+ return new ProfileImpl(profileRoot, name);
+ }
+
+ public void removeProfile(ProfileKey key)
+ throws NoSuchProfileException
+ {
+ }
+}
+
More information about the jboss-cvs-commits
mailing list