Package org.fedoraproject.p2
Class AbstractBundleRepository
- java.lang.Object
-
- org.fedoraproject.p2.AbstractBundleRepository
-
- All Implemented Interfaces:
IFedoraBundleRepository
- Direct Known Subclasses:
CompoundBundleRepository,FedoraBundleRepository
public abstract class AbstractBundleRepository extends Object implements IFedoraBundleRepository
Abstract bundle repository that contains filtering functionality so that duplicate bundles do not get returned from theIFedoraBundleRepositoryinterface. All bundle repository implementations should extend this class and implementgetDropinsLocations().
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>externalUnitsprotected Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>internalUnitsprotected Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>platformUnits
-
Constructor Summary
Constructors Constructor Description AbstractBundleRepository()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Set<Path>getDropinsLocations()Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>getExternalUnits()Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>getInternalUnits()Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>getPlatformUnits()
-
-
-
Method Detail
-
getPlatformUnits
public final Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getPlatformUnits()
- Specified by:
getPlatformUnitsin interfaceIFedoraBundleRepository- Returns:
- A set of installable units which are part of the Eclipse platform installation.
-
getInternalUnits
public final Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInternalUnits()
- Specified by:
getInternalUnitsin interfaceIFedoraBundleRepository- Returns:
- A set of installable units that are discovered by the Eclipse platform at runtime. This refers to the 'dropins' mechanism of bundle discovery. Any platform units that are also present as internal units are ignored.
-
getExternalUnits
public final Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getExternalUnits()
- Specified by:
getExternalUnitsin interfaceIFedoraBundleRepository- Returns:
- a set of installable units that are OSGi bundles, but not in a location for discovery, or inclusion as part of Eclipse. Any platform or internal units that are also present as external units are ignored.
-
-