Package org.jboss.wsf.stack.jbws

Source Code of org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect

/*    */ package org.jboss.wsf.stack.jbws;
/*    */
/*    */ import org.jboss.ws.metadata.umdm.UnifiedMetaData;
/*    */ import org.jboss.wsf.spi.deployment.Deployment;
/*    */ import org.jboss.wsf.spi.deployment.DeploymentAspect;
/*    */
/*    */ public class EagerInitializeDeploymentAspect extends DeploymentAspect
/*    */ {
/*    */   public void create(Deployment dep)
/*    */   {
/* 41 */     UnifiedMetaData umd = (UnifiedMetaData)dep.getAttachment(UnifiedMetaData.class);
/* 42 */     if (umd == null) {
/* 43 */       throw new IllegalStateException("Cannot obtain unified meta data");
/*    */     }
/* 45 */     ClassLoader runtimeClassLoader = dep.getRuntimeClassLoader();
/* 46 */     if (null == runtimeClassLoader) {
/* 47 */       throw new IllegalArgumentException("Runtime classloader may not be null");
/*    */     }
/* 49 */     umd.setClassLoader(runtimeClassLoader);
/* 50 */     umd.eagerInitialize();
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect

TOP
Copyright © 2018 www.massapi.com. 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.