public static class VerifyMojo.DummyDeployCallback extends Object implements org.apache.karaf.features.internal.service.Deployer.DeployCallback
| Constructor and Description |
|---|
DummyDeployCallback(org.osgi.framework.Bundle sysBundle,
Collection<org.apache.karaf.features.internal.model.Features> repositories) |
| Modifier and Type | Method and Description |
|---|---|
void |
callListeners(org.apache.karaf.features.DeploymentEvent deployEvent) |
void |
callListeners(org.apache.karaf.features.FeatureEvent featureEvent) |
org.apache.karaf.features.internal.service.Deployer.DeploymentState |
getDeploymentState() |
org.osgi.framework.Bundle |
installBundle(String region,
String uri,
InputStream is) |
void |
installFeature(org.apache.karaf.features.Feature feature) |
void |
persistResolveRequest(org.apache.karaf.features.internal.service.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(org.apache.karaf.features.internal.service.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) |
public DummyDeployCallback(org.osgi.framework.Bundle sysBundle,
Collection<org.apache.karaf.features.internal.model.Features> repositories)
throws Exception
Exceptionpublic org.apache.karaf.features.internal.service.Deployer.DeploymentState getDeploymentState()
public void print(String message, boolean verbose)
print in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackpublic void saveState(org.apache.karaf.features.internal.service.State state)
saveState in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackpublic void persistResolveRequest(org.apache.karaf.features.internal.service.Deployer.DeploymentRequest request)
throws IOException
persistResolveRequest in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackIOExceptionpublic void installFeature(org.apache.karaf.features.Feature feature)
throws IOException,
org.osgi.framework.InvalidSyntaxException
installFeature in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackIOExceptionorg.osgi.framework.InvalidSyntaxExceptionpublic void callListeners(org.apache.karaf.features.FeatureEvent featureEvent)
callListeners in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackpublic void callListeners(org.apache.karaf.features.DeploymentEvent deployEvent)
callListeners in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackpublic org.osgi.framework.Bundle installBundle(String region, String uri, InputStream is) throws org.osgi.framework.BundleException
installBundle in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackorg.osgi.framework.BundleExceptionpublic void updateBundle(org.osgi.framework.Bundle bundle,
String uri,
InputStream is)
throws org.osgi.framework.BundleException
updateBundle in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackorg.osgi.framework.BundleExceptionpublic void uninstall(org.osgi.framework.Bundle bundle)
throws org.osgi.framework.BundleException
uninstall in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackorg.osgi.framework.BundleExceptionpublic void startBundle(org.osgi.framework.Bundle bundle)
throws org.osgi.framework.BundleException
startBundle in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackorg.osgi.framework.BundleExceptionpublic void stopBundle(org.osgi.framework.Bundle bundle,
int options)
throws org.osgi.framework.BundleException
stopBundle in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackorg.osgi.framework.BundleExceptionpublic void setBundleStartLevel(org.osgi.framework.Bundle bundle,
int startLevel)
setBundleStartLevel in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackpublic void refreshPackages(Collection<org.osgi.framework.Bundle> bundles) throws InterruptedException
refreshPackages in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackInterruptedExceptionpublic 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)
resolveBundles in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackpublic 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
replaceDigraph in interface org.apache.karaf.features.internal.service.Deployer.DeployCallbackorg.osgi.framework.BundleExceptionorg.osgi.framework.InvalidSyntaxExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.