Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.NoSuchProfileException


      if(configuration == null || configuration.isDeploymentTarget() == false)
      {
         formatter.applyPattern(i18n.getString("DeploymentManager.NoMutableProfileException")); //$NON-NLS-1$
         Object[] args = { key };
         String msg = formatter.format(args);
         throw new NoSuchProfileException(msg);
      }
   }
View Full Code Here


   public DeploymentRepository getProfileDeploymentRepository(ProfileKey key) throws NoSuchProfileException
   {
      DeploymentRepository repository = this.repositories.get(key);
      if(repository == null)
         throw new NoSuchProfileException("No such repository for profile: "  + key);
     
      return repository;
   }
View Full Code Here

   public void removeProfileDeploymentRepository(ProfileKey key) throws Exception, NoSuchProfileException
   {
      DeploymentRepository repository = this.repositories.remove(key);
      if(repository == null)
         throw new NoSuchProfileException("No such repository for profile: "  + key);
     
      // Remove
      repository.remove();
   }
View Full Code Here

      if(getProfiles().contains(key) == false)
      {
         formatter.applyPattern(i18n.getString("DeploymentManager.NoMutableProfileException")); //$NON-NLS-1$
         Object[] args = { key };
         String msg = formatter.format(args);
         throw new NoSuchProfileException(msg);
      }
   }
View Full Code Here

      // If the key is the default, fallback to the injected default key
      if(profile == null && key.isDefaultKey() && this.defaultProfile != null)
         profile = (ProfileContext) controller.getContext(this.defaultProfile, null);  
        
      if(profile == null)
         throw new NoSuchProfileException("No such profile: " + key);
     
      return profile.getProfile();
   }
View Full Code Here

      // If the key is the default, fallback to the injected default key
      if(profile == null && key.isDefaultKey() && this.defaultProfile != null)
         profile = (ProfileContext) controller.getInstalledContext(this.defaultProfile);  
        
      if(profile == null)
         throw new NoSuchProfileException("No such profile: " + key);
     
      return profile.getProfile();
   }
View Full Code Here

      if(this.activeProfiles.contains(key))
         return;

      ProfileContext context = (ProfileContext) this.controller.getContext(key, null);
      if(context == null)
         throw new NoSuchProfileException("No such profile: "+ key);

      try
      {
         log.debug("Activating profile: " + context.getProfile());
         controller.change(context, ControllerState.INSTALLED);        
View Full Code Here

      // If the key is the default, fallback to the injected default key
      if(profile == null && key.isDefaultKey() && this.defaultProfile != null)
         profile = (ProfileContext) controller.getContext(this.defaultProfile, null);  
        
      if(profile == null)
         throw new NoSuchProfileException("No such profile: " + key);
     
      validate(profile);
   }
View Full Code Here

   {
      if(key == null)
         throw new IllegalArgumentException("Null profile key.");
     
      if(this.activeProfiles.contains(key) == false)
         throw new NoSuchProfileException("No active profile for: " + key);

      if(controller.isShutdown())
         return;
     
      ControllerContext context = controller.getInstalledContext(key);
View Full Code Here

     
      if(this.activeProfiles.contains(key))
         throw new IllegalStateException("Cannot unregister active profile: "+ key);
     
      if(this.profiles.contains(key) == false)
         throw new NoSuchProfileException("Profile not registered: " + key);
     
      log.debug("unregistering profile: " + key);
      if(controller.isShutdown())
         return;
     
View Full Code Here

TOP

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

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.