org.jboss.arquillian.container.test.spi.client.protocol
Interface Protocol<T extends ProtocolConfiguration>

All Known Implementing Classes:
AbstractJMXProtocol, BaseServletProtocol, LocalProtocol, ServletProtocol, ServletProtocol

public interface Protocol<T extends ProtocolConfiguration>

Interface that defines a Arquillian Protocol.

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
 ProtocolDescription getDescription()
          The registry name used for this protocol.
e.g.
 ContainerMethodExecutor getExecutor(T protocolConfiguration, ProtocolMetaData metaData, CommandCallback callback)
           
 DeploymentPackager getPackager()
          Get the DeploymentPackager for this Protocol.
 Class<T> getProtocolConfigurationClass()
          Get the protocols configuration class.
 

Method Detail

getProtocolConfigurationClass

Class<T> getProtocolConfigurationClass()
Get the protocols configuration class.
A instance of this class will be filled with the configuration data configured in e.g. arquillian.xml and passed back to #getExecutor(ProtocolConfiguration, ProtocolMetaData)

Returns:
The type used for configuration
See Also:
ProtocolConfiguration

getDescription

ProtocolDescription getDescription()
The registry name used for this protocol.
e.g. EJB, Servlet-2.5, Servlet-3.0

Returns:
The protocol name
See Also:
org.jboss.arquillian.api.OverProtocol

getPackager

DeploymentPackager getPackager()
Get the DeploymentPackager for this Protocol.
Used so the Protocol can bind it self to the users deployment.

Returns:

getExecutor

ContainerMethodExecutor getExecutor(T protocolConfiguration,
                                    ProtocolMetaData metaData,
                                    CommandCallback callback)
Parameters:
protocolConfiguration -
metaData -
callback - A Callback for each event received from the remote container.
Returns:


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