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

TestRuntimeContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.framework
Class TestRuntimeContext

java.lang.Object
  extended byorg.jboss.portal.test.framework.TestRuntimeContext

public class TestRuntimeContext
extends java.lang.Object

The test context offered to the test.

Version:
$Revision: 5498 $
Author:
Julien Viet

Field Summary
(package private)  BeanXMLDeployer beanDeployer
          .
private  java.util.Map beans
          The beans that will be defined by a factory in the container.
private  java.net.URL beansURL
          .
private  BasicBootstrap bootstrap
          .
private  KernelDeployment deployment
           
private  org.apache.log4j.Logger log
          .
private  boolean started
           
 
Constructor Summary
TestRuntimeContext(java.lang.String beansDD)
          Constructs a new TestRuntimeContext.
 
Method Summary
 void addBean(java.lang.String id, java.lang.Object bean)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.apache.log4j.Logger log
.


bootstrap

private BasicBootstrap bootstrap
.


beanDeployer

BeanXMLDeployer beanDeployer
.


beansURL

private java.net.URL beansURL
.


beans

private java.util.Map beans
The beans that will be defined by a factory in the container.


started

private boolean started

deployment

private KernelDeployment deployment
Constructor Detail

TestRuntimeContext

public TestRuntimeContext(java.lang.String beansDD)
                   throws java.lang.IllegalArgumentException
Constructs a new TestRuntimeContext.

Parameters:
beansDD - the location of the microcontainer beans descriptor for the beans to be wired for this test
Throws:
java.lang.IllegalArgumentException - if beansDD is null or not valid
Method Detail

addBean

public void addBean(java.lang.String id,
                    java.lang.Object bean)
             throws java.lang.IllegalStateException,
                    java.lang.IllegalArgumentException
Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()