org.jboss.arquillian.container.test.impl.client.protocol.local
Class LocalProtocol

java.lang.Object
  extended by org.jboss.arquillian.container.test.impl.client.protocol.local.LocalProtocol
All Implemented Interfaces:
Protocol<LocalProtocolConfiguration>

public class LocalProtocol
extends Object
implements Protocol<LocalProtocolConfiguration>

A Protocol that invokes the TestMethodExecutor#invoke() directly.

Version:
$Revision: $
Author:
Aslak Knutsen

Field Summary
static String NAME
           
 
Constructor Summary
LocalProtocol()
           
 
Method Summary
 ProtocolDescription getDescription()
          The registry name used for this protocol.
e.g.
 ContainerMethodExecutor getExecutor(LocalProtocolConfiguration protocolConfiguration, ProtocolMetaData metaData, CommandCallback callback)
           
 DeploymentPackager getPackager()
          Get the DeploymentPackager for this Protocol.
 Class<LocalProtocolConfiguration> getProtocolConfigurationClass()
          Get the protocols configuration class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

LocalProtocol

public LocalProtocol()
Method Detail

getProtocolConfigurationClass

public Class<LocalProtocolConfiguration> getProtocolConfigurationClass()
Description copied from interface: Protocol
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)

Specified by:
getProtocolConfigurationClass in interface Protocol<LocalProtocolConfiguration>
Returns:
The type used for configuration
See Also:
ProtocolConfiguration

getDescription

public ProtocolDescription getDescription()
Description copied from interface: Protocol
The registry name used for this protocol.
e.g. EJB, Servlet-2.5, Servlet-3.0

Specified by:
getDescription in interface Protocol<LocalProtocolConfiguration>
Returns:
The protocol name
See Also:
org.jboss.arquillian.api.OverProtocol

getPackager

public DeploymentPackager getPackager()
Description copied from interface: Protocol
Get the DeploymentPackager for this Protocol.
Used so the Protocol can bind it self to the users deployment.

Specified by:
getPackager in interface Protocol<LocalProtocolConfiguration>
Returns:

getExecutor

public ContainerMethodExecutor getExecutor(LocalProtocolConfiguration protocolConfiguration,
                                           ProtocolMetaData metaData,
                                           CommandCallback callback)
Specified by:
getExecutor in interface Protocol<LocalProtocolConfiguration>
callback - A Callback for each event received from the remote container.
Returns:


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