[jboss-cvs] system2/src/main/org/jboss/system/server/profileservice ...

Scott Stark scott.stark at jboss.com
Wed Jul 12 05:09:23 EDT 2006


  User: starksm 
  Date: 06/07/12 05:09:23

  Modified:    src/main/org/jboss/system/server/profileservice 
                        ProfileServiceImpl.java
  Log:
  Add a profileRoot property
  
  Revision  Changes    Path
  1.3       +30 -3     system2/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ProfileServiceImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/system2/src/main/org/jboss/system/server/profileservice/ProfileServiceImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ProfileServiceImpl.java	9 Jul 2006 23:48:22 -0000	1.2
  +++ ProfileServiceImpl.java	12 Jul 2006 09:09:23 -0000	1.3
  @@ -32,7 +32,7 @@
   
   
   /**
  - * A
  + * An initial ProfileService impl for loading server deployments.
    * 
    * @author Scott.Stark at jboss.org
    * @version $Revision$
  @@ -40,14 +40,41 @@
   public class ProfileServiceImpl
      implements ProfileService
   {
  +   private String name;
  +   private String profileRoot;
      private Profile defaultImpl;
      private ManagementView mgtView;
   
      public ProfileServiceImpl(String name) throws IOException
      {
  -      defaultImpl = new ProfileImpl(name);
  +      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};
  @@ -88,7 +115,7 @@
      // Admin of profiles @todo could be an option plugin
      public Profile newProfile(ProfileKey key)
      {
  -      return null;
  +      return new ProfileImpl(profileRoot, name);
      }
   
      public void removeProfile(ProfileKey key)
  
  
  



More information about the jboss-cvs-commits mailing list