public abstract class EmbeddedDeployableContainer<T extends EmbeddedContainerConfiguration> extends CommonDeployableContainer<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedDeployableContainer.AbstractContainerLogger |
static interface |
EmbeddedDeployableContainer.ContainerLogger |
| Constructor and Description |
|---|
EmbeddedDeployableContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
awaitBootstrapCompleteService(org.osgi.framework.BundleContext syscontext,
String serviceName,
long timeout,
TimeUnit unit) |
protected void |
awaitBootstrapCompleteService(String service)
Await for bootstrap service
|
protected void |
awaitBundleActive(String symbolicName,
org.osgi.framework.BundleContext syscontext,
long timeout,
TimeUnit unit) |
protected org.osgi.framework.launch.Framework |
createFramework(T conf) |
org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData |
deploy(org.jboss.shrinkwrap.api.Archive<?> archive) |
void |
deploy(org.jboss.shrinkwrap.descriptor.api.Descriptor descriptor) |
protected EmbeddedContainerConfiguration |
getContainerConfiguration() |
org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription |
getDefaultProtocol() |
protected org.osgi.framework.launch.Framework |
getFramework() |
protected EmbeddedDeployableContainer.ContainerLogger |
getLogger() |
long |
installBundle(org.jboss.shrinkwrap.api.Archive<?> archive,
boolean start)
Install a bundle from an Archive
|
protected org.osgi.framework.Bundle |
installBundle(String location,
InputStream inputStream) |
void |
refresh()
Perform a "refresh packages" operation
|
void |
setup(T configuration) |
void |
start() |
void |
startBundle(String symbolicName,
String version)
Start a bundle identified by
symbolicName and version |
protected org.osgi.framework.BundleContext |
startFramework() |
void |
stop() |
protected void |
stopFramework() |
void |
undeploy(org.jboss.shrinkwrap.api.Archive<?> archive) |
void |
undeploy(org.jboss.shrinkwrap.descriptor.api.Descriptor descriptor) |
protected void |
uninstallBundle(org.osgi.framework.Bundle bundle) |
void |
uninstallBundle(long bundleId)
Uninstall a bundle identified by
bundleId |
awaitBootstrapCompleteServices, installArquillianBundle, isAutostartBundle, uninstallArquillianBundlepublic org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription getDefaultProtocol()
public void setup(T configuration)
setup in interface org.jboss.arquillian.container.spi.client.container.DeployableContainer<T extends EmbeddedContainerConfiguration>setup in class CommonDeployableContainer<T extends EmbeddedContainerConfiguration>protected EmbeddedContainerConfiguration getContainerConfiguration()
protected EmbeddedDeployableContainer.ContainerLogger getLogger()
protected org.osgi.framework.launch.Framework createFramework(T conf)
protected org.osgi.framework.launch.Framework getFramework()
protected org.osgi.framework.BundleContext startFramework()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionprotected void stopFramework()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic long installBundle(org.jboss.shrinkwrap.api.Archive<?> archive,
boolean start)
throws Exception
CommonDeployableContainerinstallBundle in class CommonDeployableContainer<T extends EmbeddedContainerConfiguration>archive - ArchiveException - If an error occured and therefore bundle was not installedprotected org.osgi.framework.Bundle installBundle(String location, InputStream inputStream) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionprotected void uninstallBundle(org.osgi.framework.Bundle bundle)
throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic void uninstallBundle(long bundleId)
throws Exception
CommonDeployableContainerbundleIduninstallBundle in class CommonDeployableContainer<T extends EmbeddedContainerConfiguration>bundleId - Bundle idException - If an error occured and therefore bundle was not uninstalledpublic void startBundle(String symbolicName, String version) throws Exception
CommonDeployableContainersymbolicName and versionstartBundle in class CommonDeployableContainer<T extends EmbeddedContainerConfiguration>symbolicName - Bundle symbolic nameversion - Bundle versionException - If an error occured and therefore bundle was not startedpublic void start()
throws org.jboss.arquillian.container.spi.client.container.LifecycleException
org.jboss.arquillian.container.spi.client.container.LifecycleExceptionprotected void awaitBundleActive(String symbolicName, org.osgi.framework.BundleContext syscontext, long timeout, TimeUnit unit) throws org.jboss.arquillian.container.spi.client.container.LifecycleException
org.jboss.arquillian.container.spi.client.container.LifecycleExceptionprotected void awaitBootstrapCompleteService(String service)
CommonDeployableContainerawaitBootstrapCompleteService in class CommonDeployableContainer<T extends EmbeddedContainerConfiguration>protected void awaitBootstrapCompleteService(org.osgi.framework.BundleContext syscontext,
String serviceName,
long timeout,
TimeUnit unit)
public void refresh()
throws Exception
CommonDeployableContainerrefresh in class CommonDeployableContainer<T extends EmbeddedContainerConfiguration>Exception - If an error occuredpublic void stop()
throws org.jboss.arquillian.container.spi.client.container.LifecycleException
org.jboss.arquillian.container.spi.client.container.LifecycleExceptionpublic org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData deploy(org.jboss.shrinkwrap.api.Archive<?> archive)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void undeploy(org.jboss.shrinkwrap.api.Archive<?> archive)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void deploy(org.jboss.shrinkwrap.descriptor.api.Descriptor descriptor)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void undeploy(org.jboss.shrinkwrap.descriptor.api.Descriptor descriptor)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.