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 java.lang.Object implements IFedoraBundleRepository
Abstract bundle repository that contains filtering functionality so that duplicate bundles do not get returned from theIFedoraBundleRepository
interface. All bundle repository implementations should extend this class and implementgetDropinsLocations()
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
externalUnits
private boolean
filtered
protected java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
internalUnits
protected java.util.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 private void
filterUnits()
abstract java.util.Set<java.nio.file.Path>
getDropinsLocations()
java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
getExternalUnits()
java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
getInternalUnits()
java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
getPlatformUnits()
-
-
-
Field Detail
-
platformUnits
protected java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> platformUnits
-
internalUnits
protected java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> internalUnits
-
externalUnits
protected java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> externalUnits
-
filtered
private boolean filtered
-
-
Method Detail
-
filterUnits
private void filterUnits()
-
getDropinsLocations
public abstract java.util.Set<java.nio.file.Path> getDropinsLocations()
-
getPlatformUnits
public final java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getPlatformUnits()
- Specified by:
getPlatformUnits
in interfaceIFedoraBundleRepository
- Returns:
- A set of installable units which are part of the Eclipse platform installation.
-
getInternalUnits
public final java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInternalUnits()
- Specified by:
getInternalUnits
in 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 java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getExternalUnits()
- Specified by:
getExternalUnits
in 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.
-
-