org.jboss.arquillian.container.impl
Class ContainerImpl

java.lang.Object
  extended by org.jboss.arquillian.container.impl.ContainerImpl
All Implemented Interfaces:
Container

public class ContainerImpl
extends Object
implements Container

Container

Version:
$Revision: $
Author:
Aslak Knutsen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.arquillian.container.spi.Container
Container.State
 
Constructor Summary
ContainerImpl(String name, DeployableContainer<?> deployableContainer, ContainerDef containerConfiguration)
           
 
Method Summary
 ContainerConfiguration createDeployableConfiguration()
           
 ContainerDef getContainerConfiguration()
           
 DeployableContainer<?> getDeployableContainer()
           
 Throwable getFailureCause()
           
 String getName()
           
 ProtocolDef getProtocolConfiguration(ProtocolDescription description)
           
 Container.State getState()
           
 boolean hasProtocolConfiguration(ProtocolDescription description)
           
 void kill()
           
 void setState(Container.State state)
           
 void setup()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerImpl

public ContainerImpl(String name,
                     DeployableContainer<?> deployableContainer,
                     ContainerDef containerConfiguration)
Method Detail

getName

public String getName()
Specified by:
getName in interface Container
Returns:
the name

getDeployableContainer

public DeployableContainer<?> getDeployableContainer()
Specified by:
getDeployableContainer in interface Container
Returns:
the deployableContainer

getContainerConfiguration

public ContainerDef getContainerConfiguration()
Specified by:
getContainerConfiguration in interface Container
Returns:
the containerConfiguration

createDeployableConfiguration

public ContainerConfiguration createDeployableConfiguration()
                                                     throws Exception
Specified by:
createDeployableConfiguration in interface Container
Returns:
the configuration
Throws:
Exception

hasProtocolConfiguration

public boolean hasProtocolConfiguration(ProtocolDescription description)
Specified by:
hasProtocolConfiguration in interface Container

getProtocolConfiguration

public ProtocolDef getProtocolConfiguration(ProtocolDescription description)
Specified by:
getProtocolConfiguration in interface Container

getState

public Container.State getState()
Specified by:
getState in interface Container

setState

public void setState(Container.State state)
Specified by:
setState in interface Container

getFailureCause

public Throwable getFailureCause()
Specified by:
getFailureCause in interface Container

setup

public void setup()
           throws Exception
Specified by:
setup in interface Container
Throws:
Exception

start

public void start()
           throws LifecycleException
Specified by:
start in interface Container
Throws:
LifecycleException

stop

public void stop()
          throws LifecycleException
Specified by:
stop in interface Container
Throws:
LifecycleException

kill

public void kill()
          throws Exception
Specified by:
kill in interface Container
Throws:
Exception


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.