Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.ProfileKey


   {
      InitialContext ctx = super.getInitialContext();
      ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
      Collection<ProfileKey> keys = ps.getActiveProfileKeys();
      log.info("getProfileKeys: "+keys);
      ProfileKey defaultKey = null;
      for(ProfileKey key : keys)
      {
         if(key.getName().equals(PROFILESERVICE_SERVER_NAME))
            defaultKey = key;
      }
View Full Code Here


    */
   public void testNoSuchProfileException()
      throws Exception
   {
      DeploymentManager deployMgr = getDeploymentManager();
      ProfileKey badKey = new ProfileKey("no-such-profile");
      try
      {
         deployMgr.loadProfile(badKey);
         fail("Did not see NoSuchProfileException");
      }
View Full Code Here

   protected ProfileKey getTargetProfile()
   {
      if(this.activeProfileKey.get() == null)
         return this.defaultKey;
     
      ProfileKey active = this.activeProfileKey.get();
      if(active.isDefaultKey())
         return this.defaultKey;
     
      return active;
   }
View Full Code Here

        
         // FIXME make deployment visible to management view
         VirtualFile vf = deploymentRepository.getDeploymentContent(repositoryName);
        
         // FIXME
         ProfileKey key = getProfile().getKey();
         String profileName = key.getName();
         String repoDeploymentName = createDeploymentName(vf);
         deploymentRepository.lockDeploymentContent(repoDeploymentName);
         // Don't try to re-mount
         if(deploymentRepository.getDeploymentNames().contains(repoDeploymentName) == false)
         {
View Full Code Here

   public void testAvaiableProfiles() throws Exception
   {
      Collection<ProfileKey> keys = getDeploymentManager().getProfiles();
      assertNotNull(keys);
      log.debug("available keys: " + keys);
      keys.contains(new ProfileKey("applications"));
      keys.contains(deployersKey);
   }
View Full Code Here

   protected ProfileKey getProfileKey()
   {
      if(getProfileName() == null)
         return defaultProfile;
     
      return new ProfileKey(getProfileName());
   }
View Full Code Here

   /**
    * Unregisters the profile registered in {@link #start()}.
    */
   public void stop() throws Exception
   {
      ProfileKey profKey = null;
      try
      {
         profKey = getProfileKey();
      }
      catch (IllegalStateException e)
View Full Code Here

         if (profileName == null)
         {
            throw new IllegalStateException("Must configure profileName or contextName before calling getProfileKey()");
         }
         // create the ProfileKey
         this.profileKey = new ProfileKey(getProfileDomain(), getProfileServer(), profileName);
      }
      return this.profileKey;
   }
View Full Code Here

      if (this.profileService == null)
      {
         throw new IllegalStateException("Must configure the ProfileService");
      }
     
      ProfileKey profKey = getProfileKey();
     
      // only activate the profile if it's *not* already activated
      if (this.profileService.getActiveProfileKeys().contains(profKey) == false)
      {
         if (log.isDebugEnabled())
View Full Code Here

  
   public void addRepositoryClusteringHandler(RepositoryClusteringHandler handler)
   {
      if (handler != null)
      {
         ProfileKey key = handler.getProfileKey();
         synchronized (clusteringHandlers)
         {
            clusteringHandlers.put(key, handler);
         }
      }     
View Full Code Here

TOP

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

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.