Errai 3.0.1-SNAPSHOT

org.jboss.errai.cdi.server.as
Class JBossServletContainerAdaptor

java.lang.Object
  extended by com.google.gwt.core.ext.ServletContainer
      extended by org.jboss.errai.cdi.server.as.JBossServletContainerAdaptor

public class JBossServletContainerAdaptor
extends com.google.gwt.core.ext.ServletContainer

Acts as a an adaptor between gwt's ServletContainer interface and a JBoss AS 7 instance.

Author:
Max Barkley

Constructor Summary
JBossServletContainerAdaptor(int port, File appRootDir, String context, com.google.gwt.core.ext.TreeLogger treeLogger, Process jbossProcess)
          Initialize the command context for a remote JBoss AS instance.
 
Method Summary
 int getPort()
           
 void refresh()
           
 void stop()
           
 
Methods inherited from class com.google.gwt.core.ext.ServletContainer
getHost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossServletContainerAdaptor

public JBossServletContainerAdaptor(int port,
                                    File appRootDir,
                                    String context,
                                    com.google.gwt.core.ext.TreeLogger treeLogger,
                                    Process jbossProcess)
                             throws com.google.gwt.core.ext.UnableToCompleteException
Initialize the command context for a remote JBoss AS instance.

Parameters:
port - The port to which the JBoss instance binds.
appRootDir - The exploded war directory to be deployed.
context - The deployment context for the app.
treeLogger - For logging events from this container.
Throws:
com.google.gwt.core.ext.UnableToCompleteException - Thrown if this container cannot properly connect or deploy.
Method Detail

getPort

public int getPort()
Specified by:
getPort in class com.google.gwt.core.ext.ServletContainer

refresh

public void refresh()
             throws com.google.gwt.core.ext.UnableToCompleteException
Specified by:
refresh in class com.google.gwt.core.ext.ServletContainer
Throws:
com.google.gwt.core.ext.UnableToCompleteException

stop

public void stop()
          throws com.google.gwt.core.ext.UnableToCompleteException
Specified by:
stop in class com.google.gwt.core.ext.ServletContainer
Throws:
com.google.gwt.core.ext.UnableToCompleteException

Errai 3.0.1-SNAPSHOT

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