Examples of BeanDeploymentArchive


Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

      return weldManager;
   }

   private WeldManager locateWeldManager()
   {
      BeanDeploymentArchive foundBeanDeploymentArchive = null;
      for (BeanDeploymentArchive beanDeploymentArchive : bootstrapBean.getDeployment().getBeanDeploymentArchives())
      {
         if (beanDeploymentArchive.getId().equals(bdaId))
         {
            foundBeanDeploymentArchive = beanDeploymentArchive;
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

      if (deployment == null)
         throw new IllegalStateException("Null deployment");
      if (deployment.getBeanDeploymentArchives().size() == 0)
         throw new IllegalStateException("Zero bean deployment archives in the deployment");
     
      BeanDeploymentArchive archive = deployment.getBeanDeploymentArchives().iterator().next();
     
      if (deployment.getBeanDeploymentArchives().size() > 1)
         log.warn("More than one bean deployment archives, using the first " + archive);
     
      BeanManager manager = bootstrapBean.getBootstrap().getManager(archive);
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

      return weldManager;
   }

   private WeldManager locateWeldManager()
   {
      BeanDeploymentArchive foundBeanDeploymentArchive = null;
      for (BeanDeploymentArchive beanDeploymentArchive: bootstrapBean.getDeployment().getBeanDeploymentArchives())
      {
         if (beanDeploymentArchive.getId().equals(bdaId))
         {
            foundBeanDeploymentArchive = beanDeploymentArchive;
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

      return weldManager;
   }

   private WeldManager locateWeldManager()
   {
      BeanDeploymentArchive foundBeanDeploymentArchive = null;
      for (BeanDeploymentArchive beanDeploymentArchive: bootstrapBean.getDeployment().getBeanDeploymentArchives())
      {
         if (beanDeploymentArchive.getId().equals(bdaId))
         {
            foundBeanDeploymentArchive = beanDeploymentArchive;
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

      //no-op
   }

   public void inject(Object instance)
   {
      BeanDeploymentArchive foundBeanDeploymentArchive = null;
      for (BeanDeploymentArchive beanDeploymentArchive: bootstrapBean.getDeployment().getBeanDeploymentArchives())
      {
         if (beanDeploymentArchive.getId().equals(beanDeploymentArchiveId))
         {
            foundBeanDeploymentArchive = beanDeploymentArchive;
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

                  // finally create the Archive
                  Archive archive = ArchiveFactory.createArchive(archiveInfo, new ArrayList<EjbDescriptor<?>>());
                  // ... and the corresponding BDA

                  // create bda
                  BeanDeploymentArchive bda = archive.createBeanDeploymentArchive(NoopServiceRegistry.INSTANCE);
                  if (bda != null)
                     libs.add(archive);

                  // the env
                  WeldDiscoveryEnvironment environment = archiveInfo.getEnvironment();
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

   }
  
   @Override
   public void archiveDestroyed(Archive archive)
   {
      BeanDeploymentArchive bda = archive.getBeanDeploymentArchive();
      if (bda != null)
      {
         synchronized(bdas)
         {
            if (reference == bda)
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

   public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass)
   {
      Archive archive = archiveLoader.load(beanClass, this);
      loadedArchives.add(archive);
      BeanDeploymentArchive bda = archive.getBeanDeploymentArchive();
      if (archive.getBeanDeploymentArchive() == null)
      {
         ServiceRegistry serviceRegistry = loadedBDAServiceRegistry.create();
         bda = archive.createBeanDeploymentArchive(serviceRegistry);
      }
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

   private Collection<BeanDeploymentArchive> getBDAsFromArchives()
   {
      Collection<BeanDeploymentArchive> bdas = new ArrayList<BeanDeploymentArchive>();
      for (Archive archive: archives)
      {
         BeanDeploymentArchive bda = archive.getBeanDeploymentArchive();
         if (bda != null)
         {
            bdas.add(bda);
         }
      }
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

   public synchronized void archiveDestroyed(Archive archive)
   {
      synchronized(bdas)
      {
         archives.remove(archive);
         BeanDeploymentArchive bda = archive.getBeanDeploymentArchive();
         if (bda != null)
         {
            bdas.remove(bda);
         }
      }
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.