Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source
  * Copyright 2010, Red Hat Inc., and individual contributors as indicated
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site:
Maintains information about a bean archive

Thread Safety: This class is immutable and does not require a happens before event between construction and usage

Stuart Douglas
public class BeanArchiveMetadata {

The location of the beans.xml file for this bean archive
    private final VirtualFile beansXmlFile;

The ResourceRoot for the archive
    private final ResourceRoot resourceRoot;

If this bean archive is the root of the deployment (e.g. an ear or a standalone war)
    private final boolean deploymentRoot;

the parsed beans.xml representation
    private final BeansXml beansXml;

The location of an additional beans.xml file for this bean archive. This may happen if a web archive defines both META-INF/beans.xml and WEB-INF/beans.xml
    private final VirtualFile additionalBeansXmlFile;
    public BeanArchiveMetadata(VirtualFile beansXmlFileResourceRoot resourceRootBeansXml beansXmlboolean deploymentRoot) {
    public BeanArchiveMetadata(VirtualFile beansXmlFileVirtualFile additionalBeansXmlFileResourceRoot resourceRootBeansXml beansXmlboolean deploymentRoot) {
        this. = beansXmlFile;
        this. = additionalBeansXmlFile;
        this. = resourceRoot;
        this. = deploymentRoot;
        this. = beansXml;
    public VirtualFile getBeansXmlFile() {
        return ;
    public ResourceRoot getResourceRoot() {
        return ;
    public boolean isDeploymentRoot() {
        return ;
    public BeansXml getBeansXml() {
        return ;
        return ;
New to GrepCode? Check out our FAQ X