Interface BundleInstallSupport
-
- All Known Implementing Classes:
BundleInstallSupportImpl
,StaticInstallSupport
public interface BundleInstallSupport
Interface to interact with OSGi framework.
Bundles are installed into
regions
andfeatures
are used only to get their configs and libraries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BundleInstallSupport.FrameworkInfo
Low-level state of system, provides information about start levels (initial and current), system bundle, bundle of features service and entire map of bundle IDs toBundle
instances.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteConfigs(Feature feature)
File
getDataFile(String name)
org.eclipse.equinox.region.RegionDigraph
getDiGraphCopy()
BundleInstallSupport.FrameworkInfo
getInfo()
org.osgi.framework.Bundle
installBundle(String region, String uri, InputStream is)
void
installConfigs(Feature feature)
void
installLibraries(Feature feature)
void
print(String message, boolean verbose)
void
refreshPackages(Collection<org.osgi.framework.Bundle> bundles)
void
replaceDigraph(Map<String,Map<String,Map<String,Set<String>>>> policies, Map<String,Set<Long>> bundles)
void
resolveBundles(Set<org.osgi.framework.Bundle> bundles, Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> wiring, Map<org.osgi.resource.Resource,org.osgi.framework.Bundle> resToBnd)
void
saveDigraph()
void
setBundleStartLevel(org.osgi.framework.Bundle bundle, int startLevel)
void
startBundle(org.osgi.framework.Bundle bundle)
void
stopBundle(org.osgi.framework.Bundle bundle, int options)
void
uninstall(org.osgi.framework.Bundle bundle)
void
unregister()
void
updateBundle(org.osgi.framework.Bundle bundle, String uri, InputStream is)
-
-
-
Method Detail
-
print
void print(String message, boolean verbose)
-
refreshPackages
void refreshPackages(Collection<org.osgi.framework.Bundle> bundles) throws InterruptedException
- Throws:
InterruptedException
-
installBundle
org.osgi.framework.Bundle installBundle(String region, String uri, InputStream is) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
updateBundle
void updateBundle(org.osgi.framework.Bundle bundle, String uri, InputStream is) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
uninstall
void uninstall(org.osgi.framework.Bundle bundle) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
startBundle
void startBundle(org.osgi.framework.Bundle bundle) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
stopBundle
void stopBundle(org.osgi.framework.Bundle bundle, int options) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
setBundleStartLevel
void setBundleStartLevel(org.osgi.framework.Bundle bundle, int startLevel)
-
resolveBundles
void resolveBundles(Set<org.osgi.framework.Bundle> bundles, Map<org.osgi.resource.Resource,List<org.osgi.resource.Wire>> wiring, Map<org.osgi.resource.Resource,org.osgi.framework.Bundle> resToBnd)
-
replaceDigraph
void replaceDigraph(Map<String,Map<String,Map<String,Set<String>>>> policies, Map<String,Set<Long>> bundles) throws org.osgi.framework.BundleException, org.osgi.framework.InvalidSyntaxException
- Throws:
org.osgi.framework.BundleException
org.osgi.framework.InvalidSyntaxException
-
saveDigraph
void saveDigraph()
-
getDiGraphCopy
org.eclipse.equinox.region.RegionDigraph getDiGraphCopy() throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
installConfigs
void installConfigs(Feature feature) throws IOException, org.osgi.framework.InvalidSyntaxException
- Throws:
IOException
org.osgi.framework.InvalidSyntaxException
-
deleteConfigs
void deleteConfigs(Feature feature) throws IOException, org.osgi.framework.InvalidSyntaxException
- Throws:
IOException
org.osgi.framework.InvalidSyntaxException
-
installLibraries
void installLibraries(Feature feature) throws IOException
- Throws:
IOException
-
getInfo
BundleInstallSupport.FrameworkInfo getInfo()
-
unregister
void unregister()
-
-