/* (non-Javadoc) * @see org.jboss.arquillian.spi.client.container.DeployableContainer#setup(org.jboss.arquillian.spi.client.container.ContainerConfiguration) */ @Override public void setup(JBossASContainerConfiguration configuration) { server = JBossASEmbeddedServerFactory.createServer(); server .getConfiguration() .bindAddress(configuration.getBindAddress()) .serverName(configuration.getProfileName()); }
/* (non-Javadoc) * @see org.jboss.arquillian.spi.client.container.DeployableContainer#stop() */ @Override public void stop() throws LifecycleException { try { server.stop(); } catch (Exception e) { throw new LifecycleException("Could not stop container", e); } }
/* (non-Javadoc) * @see org.jboss.arquillian.spi.client.container.DeployableContainer#start() */ @Override public void start() throws LifecycleException { try { server.start(); initDeploymentManager(); } catch (Exception e) { throw new LifecycleException("Could not start container", e); } }