站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortalTestSetup - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test
Class PortalTestSetup

java.lang.Object
  extended byorg.jboss.portal.test.PortalTestSetup

public class PortalTestSetup
extends java.lang.Object

Deals with deployment and undeployment of archives to the JBoss server

Since:
Feb 1, 2006
Author:
Anil Saldhana

Field Summary
private static java.lang.String MAIN_DEPLOYER
           
 
Constructor Summary
PortalTestSetup()
           
 
Method Summary
 void deploy(java.lang.String archive)
          Deploy the given archive
private  java.net.URL getArchiveURL(java.lang.String archive)
          Try to discover the URL for the deployment archive
 javax.management.MBeanServerConnection getServer()
          Get the MBeanServerConnection from JNDI
 void undeploy(java.lang.String archive)
          Undeploy the given archive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_DEPLOYER

private static final java.lang.String MAIN_DEPLOYER
See Also:
Constant Field Values
Constructor Detail

PortalTestSetup

public PortalTestSetup()
Method Detail

deploy

public void deploy(java.lang.String archive)
            throws java.lang.Exception
Deploy the given archive

Throws:
java.lang.Exception

undeploy

public void undeploy(java.lang.String archive)
              throws java.lang.Exception
Undeploy the given archive

Throws:
java.lang.Exception

getServer

public javax.management.MBeanServerConnection getServer()
                                                 throws javax.naming.NamingException
Get the MBeanServerConnection from JNDI

Throws:
javax.naming.NamingException

getArchiveURL

private java.net.URL getArchiveURL(java.lang.String archive)
                            throws java.net.MalformedURLException
Try to discover the URL for the deployment archive

Throws:
java.net.MalformedURLException