Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.ProfileService


   private void initDeploymentManager() throws Exception
   {
      String profileName = "default";
      InitialContext ctx = new InitialContext();
      ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
      deploymentManager = ps.getDeploymentManager();
      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey);
      VFS.init();
   }
View Full Code Here


/*     */     throws Exception
/*     */   {
/* 193 */     MainDeployer deployer = getMainDeployer();
/* 194 */     if (deployer == null)
/* 195 */       throw new NullPointerException("MainDeployer has not been set");
/* 196 */     ProfileService ps = getProfileService();
/* 197 */     if (ps == null) {
/* 198 */       throw new NullPointerException("ProfileService has not been set");
/*     */     }
/*     */
/* 201 */     ProfileKey key = new ProfileKey(name);
/* 202 */     Profile profile = ps.getProfile(key);
/*     */
/* 205 */     VFSDeployment first = null;
/*     */
/* 208 */     Collection boostraps = profile.getDeployments(ManagedDeployment.DeploymentPhase.BOOTSTRAP);
/* 209 */     for (VFSDeployment d : boostraps)
View Full Code Here

   private void initDeploymentManager() throws Exception
   {
      String profileName = configuration.getProfileName();
      InitialContext ctx = new InitialContext();
      ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
      deploymentManager = ps.getDeploymentManager();
      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey);
   }
View Full Code Here

   private void initDeploymentManager() throws Exception
   {
      String profileName = configuration.getProfileName();
      InitialContext ctx = new InitialContext();
      ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
      deploymentManager = ps.getDeploymentManager();
      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey);
      VFS.init();
   }
View Full Code Here

   /**
    * Unregisters the profile registered in {@link #start()}.
    */
   public void stop() throws Exception
   {     
      ProfileService profSvc = getProfileService();
      ProfileKey profKey = getProfileKey();
      if (profSvc != null &&  profKey != null)
      {
         try
         {
            // Inactivate first if needed
            if (profSvc.getActiveProfileKeys().contains(profKey))
            {
               releaseProfile();
            }
           
            profSvc.unregisterProfile(profKey);
         }
         catch (NoSuchProfileException e)
         {
            log.warn("Could not unregister unknown profile " + profKey);
         }
View Full Code Here

TOP

Related Classes of org.jboss.profileservice.spi.ProfileService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.