[jboss-cvs] JBossAS SVN: r61068 - in trunk/system/src/main/org/jboss: system/server/profileservice/basic and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Mar 3 00:15:03 EST 2007
Author: scott.stark at jboss.org
Date: 2007-03-03 00:15:03 -0500 (Sat, 03 Mar 2007)
New Revision: 61068
Modified:
trunk/system/src/main/org/jboss/profileservice/spi/ProfileService.java
trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java
trunk/system/src/main/org/jboss/system/server/profileservice/repository/ProfileServiceImpl.java
Log:
Add an active profile notion
Modified: trunk/system/src/main/org/jboss/profileservice/spi/ProfileService.java
===================================================================
--- trunk/system/src/main/org/jboss/profileservice/spi/ProfileService.java 2007-03-03 04:33:46 UTC (rev 61067)
+++ trunk/system/src/main/org/jboss/profileservice/spi/ProfileService.java 2007-03-03 05:15:03 UTC (rev 61068)
@@ -61,6 +61,15 @@
throws NoSuchProfileException;
/**
+ * Get the active profile.
+ * @return the active profile
+ * @throws NoSuchProfileException thrown if there is no
+ * active profile
+ */
+ public Profile getActiveProfile()
+ throws NoSuchProfileException;
+
+ /**
* Get a list of the deployment names associated with a profile.
* @param key - the key for the profile
* @return the list of deployment names.
Modified: trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java 2007-03-03 04:33:46 UTC (rev 61067)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/basic/ProfileServiceImpl.java 2007-03-03 05:15:03 UTC (rev 61068)
@@ -98,6 +98,11 @@
{
return defaultImpl;
}
+ public Profile getActiveProfile()
+ throws NoSuchProfileException
+ {
+ return defaultImpl;
+ }
public String[] getProfileDeploymentNames(ProfileKey key)
throws NoSuchProfileException
Modified: trunk/system/src/main/org/jboss/system/server/profileservice/repository/ProfileServiceImpl.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/repository/ProfileServiceImpl.java 2007-03-03 04:33:46 UTC (rev 61067)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/repository/ProfileServiceImpl.java 2007-03-03 05:15:03 UTC (rev 61068)
@@ -147,6 +147,11 @@
{
return profile;
}
+ public Profile getActiveProfile()
+ throws NoSuchProfileException
+ {
+ return profile;
+ }
public String[] getProfileDeploymentNames(ProfileKey key)
throws NoSuchProfileException
More information about the jboss-cvs-commits
mailing list