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

MainDeployerFacade - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.test.framework.deployment
Class MainDeployerFacade

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.test.framework.deployment.MainDeployerFacade
All Implemented Interfaces:
MainDeployerFacadeMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class MainDeployerFacade
extends org.jboss.system.ServiceMBeanSupport
implements MainDeployerFacadeMBean

This is a hack for testing. We log the deployment exception in the MainDeployerProxy that keeps exception in a thread local and rethrow them once deployment is finished. We are forced to do that because the deployment mechanism we have is based on JMX notifications isolate the two deployment layers (JBoss AS and JBoss Portal). Having deployment interception will solve the problem.


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
MainDeployerFacade()
           
 
Method Summary
 void deploy(java.net.URL url)
           
 org.jboss.deployment.MainDeployerMBean getMainDeployer()
           
static void log(org.jboss.deployment.DeploymentException e)
           
 void setMainDeployer(org.jboss.deployment.MainDeployerMBean mainDeployer)
           
 void undeploy(java.net.URL url)
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainDeployerFacade

public MainDeployerFacade()
Method Detail

log

public static void log(org.jboss.deployment.DeploymentException e)

getMainDeployer

public org.jboss.deployment.MainDeployerMBean getMainDeployer()
Specified by:
getMainDeployer in interface MainDeployerFacadeMBean

setMainDeployer

public void setMainDeployer(org.jboss.deployment.MainDeployerMBean mainDeployer)
Specified by:
setMainDeployer in interface MainDeployerFacadeMBean

deploy

public void deploy(java.net.URL url)
            throws org.jboss.deployment.DeploymentException
Specified by:
deploy in interface MainDeployerFacadeMBean
Throws:
org.jboss.deployment.DeploymentException

undeploy

public void undeploy(java.net.URL url)
              throws org.jboss.deployment.DeploymentException
Specified by:
undeploy in interface MainDeployerFacadeMBean
Throws:
org.jboss.deployment.DeploymentException