Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.NoSuchProfileException


   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

/* 154 */     if (this.activeProfile == null)
/*     */     {
/* 156 */       this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchProfileException"));
/* 157 */       Object[] args = { key };
/* 158 */       String msg = this.formatter.format(args);
/* 159 */       throw new NoSuchProfileException(msg);
/*     */     }
/*     */
/* 163 */     Set deploymentNames = this.activeProfile.getDeploymentNames();
/* 164 */     for (String name : deploymentNames)
/*     */     {
View Full Code Here

/* 465 */     if (this.serializer == null) {
/* 466 */       throw new IllegalStateException("serializer has not been set");
/*     */     }
/* 468 */     File profileRoot = new File(this.root, this.key.getName());
/* 469 */     if (!profileRoot.exists()) {
/* 470 */       throw new NoSuchProfileException("Profile root does not exists: " + profileRoot);
/*     */     }
/* 472 */     this.bootstrapDir = new File(profileRoot, "bootstrap");
/* 473 */     if (!this.bootstrapDir.exists())
/*     */     {
/* 477 */       this.bootstrapDir = null;
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.