[jboss-cvs] JBossAS SVN: r83401 - trunk/cluster/src/main/org/jboss/ha/singleton.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Jan 25 07:54:24 EST 2009
Author: emuckenhuber
Date: 2009-01-25 07:54:23 -0500 (Sun, 25 Jan 2009)
New Revision: 83401
Modified:
trunk/cluster/src/main/org/jboss/ha/singleton/HASingletonProfileManager.java
Log:
remove the workaround and use the correct profileFactory
Modified: trunk/cluster/src/main/org/jboss/ha/singleton/HASingletonProfileManager.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/singleton/HASingletonProfileManager.java 2009-01-25 12:53:09 UTC (rev 83400)
+++ trunk/cluster/src/main/org/jboss/ha/singleton/HASingletonProfileManager.java 2009-01-25 12:54:23 UTC (rev 83401)
@@ -24,10 +24,7 @@
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import org.jboss.profileservice.spi.NoSuchProfileException;
@@ -148,17 +145,10 @@
// Create a hotdeployment profile
ProfileMetaData metadata = createProfileMetaData(true, rootURIs, rootSubProfiles);
- Profile profile = createProfileHack(getProfileKey(), metadata);
+ Profile profile = profileFactory.createProfile(getProfileKey(), metadata);
getProfileService().registerProfile(profile);
}
- private Profile createProfileHack(ProfileKey key, ProfileMetaData metadata) throws Exception
- {
- Map<ProfileKey, Profile> profiles = new HashMap<ProfileKey, Profile>();
- profileFactory.createProfile(profiles, Collections.EMPTY_LIST, key, metadata);
- return profiles.get(key);
- }
-
/**
* Unregisters the profile registered in {@link #start()}.
*/
More information about the jboss-cvs-commits
mailing list