Package org.jboss.system

Examples of org.jboss.system.ServiceContext


   }

   public void undeploy(DeploymentUnit unit, ServiceMetaData deployment)
   {
      ObjectName name = deployment.getObjectName();
      ServiceContext context = controller.getServiceContext(name);
      if (context != null)
      {
         stop(name);
         destroy(name);
         remove(name);
View Full Code Here


/*     */         else {
/*  95 */           loaderName = this.defaultClassLoader;
/*     */         }
/*     */       }
/*  98 */       this.controller.install(deployment, loaderName);
/*  99 */       ServiceContext context = this.controller.getServiceContext(name);
/* 100 */       if (context == null)
/* 101 */         throw new IllegalStateException("No context for " + name);
/*     */       try
/*     */       {
/* 104 */         create(context);
/*     */         try
/*     */         {
/* 107 */           start(context);
/* 108 */           Throwable t = context.getProblem();
/* 109 */           if (t != null)
/* 110 */             throw t;
/*     */         }
/*     */         catch (Throwable t)
/*     */         {
View Full Code Here

/*     */   }
/*     */
/*     */   public void undeploy(DeploymentUnit unit, ServiceMetaData deployment)
/*     */   {
/* 132 */     ObjectName name = deployment.getObjectName();
/* 133 */     ServiceContext context = this.controller.getServiceContext(name);
/* 134 */     if (context != null)
/*     */     {
/* 136 */       stop(name);
/* 137 */       destroy(name);
/* 138 */       remove(name);
View Full Code Here

TOP

Related Classes of org.jboss.system.ServiceContext

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.