public class DefaultOSGiConfigurator extends java.lang.Object implements OSGiConfigurator
Modifier and Type | Field and Description |
---|---|
private static org.fedoraproject.xmvn.artifact.Artifact |
BUNDLES_EXTERNAL |
private static org.fedoraproject.xmvn.artifact.Artifact |
BUNDLES_EXTERNAL_ZIP |
private org.slf4j.Logger |
logger |
private org.fedoraproject.xmvn.resolver.Resolver |
resolver |
Constructor and Description |
---|
DefaultOSGiConfigurator(org.fedoraproject.xmvn.resolver.Resolver resolver) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.nio.file.Path> |
getBundles() |
private java.util.List<java.lang.String> |
getBundlesFromZip(java.nio.file.Path bundlesZip)
Extracts all OSGi bundles contained within the given zip file and returns
them in a list.
|
java.util.Collection<java.lang.String> |
getExportedPackages() |
private final org.slf4j.Logger logger
private static final org.fedoraproject.xmvn.artifact.Artifact BUNDLES_EXTERNAL
private static final org.fedoraproject.xmvn.artifact.Artifact BUNDLES_EXTERNAL_ZIP
private final org.fedoraproject.xmvn.resolver.Resolver resolver
public DefaultOSGiConfigurator(org.fedoraproject.xmvn.resolver.Resolver resolver)
public java.util.Collection<java.nio.file.Path> getBundles()
getBundles
in interface OSGiConfigurator
private java.util.List<java.lang.String> getBundlesFromZip(java.nio.file.Path bundlesZip) throws java.io.IOException
bundlesZip
- path to the zip on the filesystemjava.io.IOException
- if there was an IO error during extractionpublic java.util.Collection<java.lang.String> getExportedPackages()
getExportedPackages
in interface OSGiConfigurator