Interface Deployer.DeployCallback
-
- All Superinterfaces:
SubsystemResolverCallback
- All Known Implementing Classes:
FeaturesServiceImpl
- Enclosing class:
- Deployer
public static interface Deployer.DeployCallback extends SubsystemResolverCallback
Interface through whichDeployer
interacts with OSGi framework.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
callListeners(DeploymentEvent deployEvent)
void
callListeners(FeatureEvent featureEvent)
void
deleteConfigs(Feature feature)
org.osgi.framework.Bundle
installBundle(String region, String uri, InputStream is)
void
installConfigs(Feature feature)
void
installLibraries(Feature feature)
void
persistResolveRequest(Deployer.DeploymentRequest request)
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
saveState(State state)
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
updateBundle(org.osgi.framework.Bundle bundle, String uri, InputStream is)
-
Methods inherited from interface org.apache.karaf.features.internal.region.SubsystemResolverCallback
bundleBlacklisted
-
-
-
-
Method Detail
-
print
void print(String message, boolean verbose)
-
saveState
void saveState(State state)
-
persistResolveRequest
void persistResolveRequest(Deployer.DeploymentRequest request) throws IOException
- Throws:
IOException
-
callListeners
void callListeners(DeploymentEvent deployEvent)
-
callListeners
void callListeners(FeatureEvent featureEvent)
-
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)
-
refreshPackages
void refreshPackages(Collection<org.osgi.framework.Bundle> bundles) throws InterruptedException
- Throws:
InterruptedException
-
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
-
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
-
-