1 /* 2 * Copyright 2013 smartics, Kronseder & Reiner GmbH 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.smartics.maven.plugin.jboss.modules.aether; 17 18 import java.util.ArrayList; 19 import java.util.List; 20 21 import org.sonatype.aether.graph.Dependency; 22 23 /** 24 * The Maven response with calculated dependencies. 25 */ 26 public final class MavenResponse 27 { 28 // ********************************* Fields ********************************* 29 30 // --- constants ------------------------------------------------------------ 31 32 // --- members -------------------------------------------------------------- 33 34 /** 35 * The calculated dependencies. 36 */ 37 private final List<Dependency> dependencies = new ArrayList<Dependency>(); 38 39 // ****************************** Initializer ******************************* 40 41 // ****************************** Constructors ****************************** 42 43 /** 44 * Default constructor. 45 */ 46 public MavenResponse() 47 { 48 } 49 50 // ****************************** Inner Classes ***************************** 51 52 // ********************************* Methods ******************************** 53 54 // --- init ----------------------------------------------------------------- 55 56 // --- get&set -------------------------------------------------------------- 57 58 // --- business ------------------------------------------------------------- 59 60 /** 61 * Adds a dependency. 62 * 63 * @param dependency the dependency to add. 64 */ 65 public void add(final Dependency dependency) 66 { 67 dependencies.add(dependency); 68 } 69 70 /** 71 * Returns the calculated dependencies. 72 * 73 * @return the calculated dependencies. 74 */ 75 public List<Dependency> getDependencies() 76 { 77 return dependencies; 78 } 79 80 // --- object basics -------------------------------------------------------- 81 82 }