Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.ProfileKey


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


    */
   public void registerDeploymentRepository(AbstractDeploymentRepository repository)
   {
      if(repository == null)
         throw new IllegalArgumentException("null deployment repository");
      ProfileKey repositoryKey = repository.getProfileKey();
      if(repositoryKey == null)
         throw new IllegalArgumentException("null profile key");
      if(this.repositories.containsKey(repositoryKey))
         throw new IllegalStateException("duplicate repository " + repositoryKey);
     
View Full Code Here

    */
   public void unregisterDeploymentRepository(AbstractDeploymentRepository repository)
   {
      if(repository == null)
         throw new IllegalArgumentException("null deployment repository");
      ProfileKey repositoryKey = repository.getProfileKey();
      if(repositoryKey == null)
         throw new IllegalArgumentException("null profile key");
     
      this.unregisterDeploymentRepository(repositoryKey);
   }
View Full Code Here

   public ProfileKey unwrapMetaValue(MetaValue metaValue)
   {
      if(metaValue != null && SimpleMetaType.STRING.equals(metaValue.getMetaType()))
      {
         String profileName = String.class.cast(((SimpleValue) metaValue).getValue());
         return new ProfileKey(profileName);
      }
      throw new IllegalStateException("cannot recreate profile key");
   }
View Full Code Here

   @ManagementObjectID(type="HASingletonProfileActivator")
   public ProfileKey getProfileKey()
   {
      if (this.profileKey == null)
      {
         this.profileKey = new ProfileKey(getProfileDomain(), getProfileServer(), getProfileName());
      }
      return this.profileKey;
   }
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
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

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

   {
      if (this.profileService == null)
      {
         throw new IllegalStateException("Must configure the ProfileService");
      }
      ProfileKey profKey = getProfileKey();
      if (this.profileService.getActiveProfileKeys().contains(profKey) == false)
      {        
         this.profileService.activateProfile(profKey);
         if (validate)
         {
View Full Code Here

   protected ProfileKey getProfileKey()
   {
      if(getProfileName() == null)
         return defaultProfile;
     
      return new ProfileKey(getProfileName());
   }
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.