Debian Codegraph @

bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/actions/RootIUAdvice.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2008, 2017 Code 9 and others.
3 *
4 * This
5 * program and the accompanying materials are made available under the terms of
6 * the Eclipse Public License 2.0 which accompanies this distribution, and is
7 * available at
8 * https://www.eclipse.org/legal/epl-2.0/
9 *
10 * SPDX-License-Identifier: EPL-2.0
11 *
12 * Contributors:
13 * Code 9 - initial API and implementation
14 * IBM - ongoing development
15 ******************************************************************************/
16 package org.eclipse.equinox.p2.publisher.actions;
17
18 import java.util.Collection;
19 import org.eclipse.equinox.p2.publisher.AbstractAdvice;
20 import org.eclipse.equinox.p2.publisher.IPublisherResult;
21
22 /**
23 * Advises publisher actions as to which IUs should be listed as children of an
24 * eventual root IU. Each child is described as a VersionedName.
25 */
26 public class RootIUAdvice extends AbstractAdvice implements IRootIUAdvice {
27
28 private Collection<? extends Object> children;
29
30 public RootIUAdvice(Collection<? extends Object> children) {
31 this.children = children;
32 }
33
34 @Override
35 public Collection<? extends Object> getChildren(IPublisherResult result) {
36 return children;
37 }
38
39 }