Class StaticInstallSupport
- java.lang.Object
-
- org.apache.karaf.features.internal.service.StaticInstallSupport
-
- All Implemented Interfaces:
BundleInstallSupport
public abstract class StaticInstallSupport extends Object implements BundleInstallSupport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.karaf.features.internal.service.BundleInstallSupport
BundleInstallSupport.FrameworkInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
failOnUninstall
protected boolean
failOnUpdate
-
Constructor Summary
Constructors Constructor Description StaticInstallSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getDataFile(String name)
org.eclipse.equinox.region.RegionDigraph
getDiGraphCopy()
BundleInstallSupport.FrameworkInfo
getInfo()
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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.karaf.features.internal.service.BundleInstallSupport
deleteConfigs, installBundle, installConfigs, installLibraries
-
-
-
-
Method Detail
-
print
public void print(String message, boolean verbose)
- Specified by:
print
in interfaceBundleInstallSupport
-
refreshPackages
public void refreshPackages(Collection<org.osgi.framework.Bundle> bundles) throws InterruptedException
- Specified by:
refreshPackages
in interfaceBundleInstallSupport
- Throws:
InterruptedException
-
updateBundle
public void updateBundle(org.osgi.framework.Bundle bundle, String uri, InputStream is) throws org.osgi.framework.BundleException
- Specified by:
updateBundle
in interfaceBundleInstallSupport
- Throws:
org.osgi.framework.BundleException
-
uninstall
public void uninstall(org.osgi.framework.Bundle bundle) throws org.osgi.framework.BundleException
- Specified by:
uninstall
in interfaceBundleInstallSupport
- Throws:
org.osgi.framework.BundleException
-
startBundle
public void startBundle(org.osgi.framework.Bundle bundle) throws org.osgi.framework.BundleException
- Specified by:
startBundle
in interfaceBundleInstallSupport
- Throws:
org.osgi.framework.BundleException
-
stopBundle
public void stopBundle(org.osgi.framework.Bundle bundle, int options) throws org.osgi.framework.BundleException
- Specified by:
stopBundle
in interfaceBundleInstallSupport
- Throws:
org.osgi.framework.BundleException
-
setBundleStartLevel
public void setBundleStartLevel(org.osgi.framework.Bundle bundle, int startLevel)
- Specified by:
setBundleStartLevel
in interfaceBundleInstallSupport
-
resolveBundles
public 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)
- Specified by:
resolveBundles
in interfaceBundleInstallSupport
-
replaceDigraph
public 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
- Specified by:
replaceDigraph
in interfaceBundleInstallSupport
- Throws:
org.osgi.framework.BundleException
org.osgi.framework.InvalidSyntaxException
-
saveDigraph
public void saveDigraph()
- Specified by:
saveDigraph
in interfaceBundleInstallSupport
-
getDiGraphCopy
public org.eclipse.equinox.region.RegionDigraph getDiGraphCopy() throws org.osgi.framework.BundleException
- Specified by:
getDiGraphCopy
in interfaceBundleInstallSupport
- Throws:
org.osgi.framework.BundleException
-
getDataFile
public File getDataFile(String name)
- Specified by:
getDataFile
in interfaceBundleInstallSupport
-
getInfo
public BundleInstallSupport.FrameworkInfo getInfo()
- Specified by:
getInfo
in interfaceBundleInstallSupport
-
unregister
public void unregister()
- Specified by:
unregister
in interfaceBundleInstallSupport
-
-