| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2009, 2010 IBM Corporation and others. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* IBM Corporation - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
package org.eclipse.equinox.p2.publisher.actions; |
| 15 |
|
| 16 |
import org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription; |
| 17 |
|
| 18 |
import java.util.Map; |
| 19 |
import org.eclipse.equinox.p2.metadata.IInstallableUnit; |
| 20 |
import org.eclipse.equinox.p2.publisher.IPublisherAdvice; |
| 21 |
import org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor; |
| 22 |
|
| 23 |
public interface IPropertyAdvice extends IPublisherAdvice { |
| 24 |
|
| 25 |
/** |
| 26 |
* Returns the set of extra properties to be associated with the IU |
| 27 |
*/ |
| 28 |
public Map<String, String> getInstallableUnitProperties(InstallableUnitDescription iu); |
| 29 |
|
| 30 |
/** |
| 31 |
* Returns the set of extra properties to be associated with the artifact descriptor |
| 32 |
* being published |
| 33 |
*/ |
| 34 |
public Map<String, String> getArtifactProperties(IInstallableUnit iu, IArtifactDescriptor descriptor); |
| 35 |
} |