Package org.jboss.deployers.structure.spi

Examples of org.jboss.deployers.structure.spi.DeploymentUnit.addAttachment()


   protected void addComponent(DeploymentUnit unit, C componentMD)
   {
      String name = getName(unit, componentMD);
      DeploymentUnit component = unit.addComponent(name);
      // TODO: determine proper component meta data class
      component.addAttachment(componentMD.getClass().getName(), componentMD);
   }

   public void deploy(DeploymentUnit unit, T deployment) throws DeploymentException
   {
      List<C> components = getComponents(deployment);
View Full Code Here


   protected static void addServiceComponent(DeploymentUnit unit, ServiceMetaData service)
   {
      ObjectName objectName = service.getObjectName();
      String name = objectName.getCanonicalName();
      DeploymentUnit component = unit.addComponent(name);
      component.addAttachment(ServiceMetaData.class.getName(), service);
   }

   protected static void removeServiceComponent(DeploymentUnit unit, ServiceMetaData service)
   {
      ObjectName objectName = service.getObjectName();
View Full Code Here

/*     */   }
/*     */
/*     */   protected static void addBeanComponent(DeploymentUnit unit, BeanMetaData bean)
/*     */   {
/*  46 */     DeploymentUnit component = unit.addComponent(bean.getName());
/*  47 */     component.addAttachment(BeanMetaData.class.getName(), bean);
/*     */   }
/*     */
/*     */   protected static void removeBeanComponent(DeploymentUnit unit, BeanMetaData bean)
/*     */   {
/*  52 */     unit.removeComponent(bean.getName());
View Full Code Here

/*     */   }
/*     */
/*     */   protected static void addAliasComponent(DeploymentUnit unit, NamedAliasMetaData alias)
/*     */   {
/*  49 */     DeploymentUnit component = unit.addComponent(alias.getAliasValue().toString());
/*  50 */     component.addAttachment(NamedAliasMetaData.class.getName(), alias);
/*     */   }
/*     */
/*     */   protected static void removeAliasComponent(DeploymentUnit unit, NamedAliasMetaData alias)
/*     */   {
/*  55 */     unit.removeComponent(alias.getAliasValue().toString());
View Full Code Here

/*     */   protected static void addServiceComponent(DeploymentUnit unit, ServiceMetaData service)
/*     */   {
/*  60 */     ObjectName objectName = service.getObjectName();
/*  61 */     String name = objectName.getCanonicalName();
/*  62 */     DeploymentUnit component = unit.addComponent(name);
/*  63 */     component.addAttachment(ServiceMetaData.class.getName(), service);
/*     */   }
/*     */
/*     */   protected static void removeServiceComponent(DeploymentUnit unit, ServiceMetaData service)
/*     */   {
/*  68 */     ObjectName objectName = service.getObjectName();
View Full Code Here

/*     */     }
/*     */
/* 101 */     if (loaderConfig == null)
/*     */     {
/* 103 */       loaderConfig = new LoaderRepositoryFactory.LoaderRepositoryConfig();
/* 104 */       unit.addAttachment(LoaderRepositoryFactory.LoaderRepositoryConfig.class, loaderConfig);
/* 105 */       this.log.trace("Using default loader repository config: " + loaderConfig.repositoryName);
/*     */     }
/*     */
/* 108 */     LoaderRepositoryFactory.createLoaderRepository(server, loaderConfig);
/*     */
View Full Code Here

/* 144 */       constructor.setParameters(new Object[] { str, getMetaData(childDU) });
/* 145 */       subjaccPolicy.setConstructor(constructor);
/*     */
/* 147 */       ArrayList services = new ArrayList();
/* 148 */       services.add(subjaccPolicy);
/* 149 */       childDU.addAttachment("jboss.jacc", subjaccPolicy, ServiceMetaData.class);
/*     */
/* 152 */       ServiceMetaData parentJacc = (ServiceMetaData)childDU.getParent().getAttachment("jboss.jacc");
/* 153 */       if (parentJacc == null) {
/* 154 */         throw new IllegalStateException("Parent JACC Policy is null");
/*     */       }
View Full Code Here

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.