Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
   * contributors by the @authors tag. See the copyright.txt in the
   * distribution for a full listing of individual contributors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.jboss.weld.environment.deployment;
 
 import java.util.Set;
 

Author(s):
Pete Muir
Matej Briškár
Martin Kouba
 
 
     private final Collection<StringbeanClasses;
 
     private final BeansXml beansXml;
 

Parameters:
id
beanClasses The collection should be mutable
beansXml
beanDeploymentArchives
 
     public WeldBeanDeploymentArchive(String idCollection<StringbeanClassesBeansXml beansXmlSet<WeldBeanDeploymentArchivebeanDeploymentArchives) {
         super(id);
         this. = beanClasses;
         this. = beansXml;
         this. = beanDeploymentArchives;
     }
 
     public WeldBeanDeploymentArchive(String idCollection<StringbeanClassesBeansXml beansXml) {
         this(idbeanClassesbeansXml, Collections.<WeldBeanDeploymentArchiveemptySet());
     }
 
     @Override
     public Collection<StringgetBeanClasses() {
         return Collections.unmodifiableCollection();
     }
 
     @Override
     }
 
     @Override
     public BeansXml getBeansXml() {
         return ;
     }
 
     public void setAccessibleBeanDeploymentArchives(Set<WeldBeanDeploymentArchivebeanDeploymentArchives) {
         this. = beanDeploymentArchives;
     }

    

Parameters:
className
 
     void addBeanClass(String className) {
         this..add(className);
     }

    

Parameters:
bootstrap
archives
Returns:
the "flat" bean deployment archive
 
     public static <T extends BeanDeploymentArchiveWeldBeanDeploymentArchive merge(CDI11Bootstrap bootstrapIterable<T> archives) {
         BeansXml mergedBeansXml = new BeansXmlParser().mergeExisting(archivestrue);
         Set<StringbeanClasses = new HashSet<String>();
         for (BeanDeploymentArchive archive : archives) {
            beanClasses.addAll(archive.getBeanClasses());
        }
        return new WeldBeanDeploymentArchive(.beanClassesmergedBeansXml);
    }
New to GrepCode? Check out our FAQ X