001package org.apache.maven.project;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import java.util.ArrayList;
023import java.util.List;
024
025/**
026 * Provides metadata about a build extension. <strong>Warning:</strong> This is an internal utility class that is only
027 * public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted
028 * without prior notice.
029 *
030 * @author Benjamin Bentmann
031 */
032public class ExtensionDescriptor
033{
034
035    private List<String> exportedPackages;
036
037    private List<String> exportedArtifacts;
038
039    ExtensionDescriptor()
040    {
041        // hide constructor
042    }
043
044    public List<String> getExportedPackages()
045    {
046        if ( exportedPackages == null )
047        {
048            exportedPackages = new ArrayList<String>();
049        }
050
051        return exportedPackages;
052    }
053
054    public void setExportedPackages( List<String> exportedPackages )
055    {
056        if ( exportedPackages == null )
057        {
058            this.exportedPackages = null;
059        }
060        else
061        {
062            this.exportedPackages = new ArrayList<String>( exportedPackages );
063        }
064    }
065
066    public List<String> getExportedArtifacts()
067    {
068        if ( exportedArtifacts == null )
069        {
070            exportedArtifacts = new ArrayList<String>();
071        }
072
073        return exportedArtifacts;
074    }
075
076    public void setExportedArtifacts( List<String> exportedArtifacts )
077    {
078        if ( exportedArtifacts == null )
079        {
080            this.exportedArtifacts = null;
081        }
082        else
083        {
084            this.exportedArtifacts = new ArrayList<String>( exportedArtifacts );
085        }
086    }
087
088}