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

ServerDeployer - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.server.deployment.jboss
Class ServerDeployer

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.deployment.SubDeployerSupport
              extended byorg.jboss.portal.server.deployment.jboss.ServerDeployer
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ServerDeployerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerExt, org.jboss.deployment.SubDeployerExtMBean, org.jboss.deployment.SubDeployerMBean

public class ServerDeployer
extends org.jboss.deployment.SubDeployerSupport
implements ServerDeployerMBean

Version:
$Revision: 5448 $
Author:
Julien Viet

Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.SubDeployerSupport.ClassConfiguration
 
Field Summary
private  java.util.Map diMap
          The portal deployment info map.
private  java.util.Set factories
          The factories.
private  org.apache.log4j.Logger log
          The loggger.
private  Server portalServer
          The server.
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, enhancedSuffixes, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
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
 
Fields inherited from interface org.jboss.deployment.SubDeployer
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION
 
Constructor Summary
ServerDeployer()
           
 
Method Summary
 boolean accepts(org.jboss.deployment.DeploymentInfo di)
          This should never be called for server deployment.
 void create(org.jboss.deployment.DeploymentInfo di)
           
 void deploy(PortalWebApp pwa)
           
 void destroy(org.jboss.deployment.DeploymentInfo di)
           
 DeploymentFactory findFactory(java.net.URL url)
          Locate a deployment info factory based on the url.
 ServerDeployer getDeployer()
           
 java.util.Set getFactories()
           
 Server getPortalServer()
           
private  void instrument(PortalWebApp pwa)
          Instrument the portal web app.
protected  void processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
           
 void registerFactory(DeploymentFactory factory)
           
 void setPortalServer(Server portalServer)
           
 void start(org.jboss.deployment.DeploymentInfo di)
           
 void stop(org.jboss.deployment.DeploymentInfo di)
           
 void undeploy(PortalWebApp pwa)
           
 void unregisterFactory(DeploymentFactory factory)
           
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, init, isDeployable, setEnhancedSuffixes, setRelativeOrder, setSuffixes, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
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
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
getRelativeOrder, getServiceName, getSuffixes, init
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getServiceName
 

Field Detail

log

private final org.apache.log4j.Logger log
The loggger.


portalServer

private Server portalServer
The server.


factories

private java.util.Set factories
The factories.


diMap

private java.util.Map diMap
The portal deployment info map.

Constructor Detail

ServerDeployer

public ServerDeployer()
Method Detail

getFactories

public java.util.Set getFactories()
Specified by:
getFactories in interface ServerDeployerMBean

accepts

public boolean accepts(org.jboss.deployment.DeploymentInfo di)
This should never be called for server deployment.

Specified by:
accepts in interface org.jboss.deployment.SubDeployerMBean

getPortalServer

public Server getPortalServer()
Specified by:
getPortalServer in interface ServerDeployerMBean

setPortalServer

public void setPortalServer(Server portalServer)
Specified by:
setPortalServer in interface ServerDeployerMBean

getDeployer

public ServerDeployer getDeployer()
Specified by:
getDeployer in interface ServerDeployerMBean

registerFactory

public void registerFactory(DeploymentFactory factory)
Specified by:
registerFactory in interface ServerDeployerMBean

unregisterFactory

public void unregisterFactory(DeploymentFactory factory)
Specified by:
unregisterFactory in interface ServerDeployerMBean

processNestedDeployments

protected void processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
                                 throws org.jboss.deployment.DeploymentException
Throws:
org.jboss.deployment.DeploymentException

findFactory

public DeploymentFactory findFactory(java.net.URL url)
Description copied from interface: ServerDeployerMBean
Locate a deployment info factory based on the url. If no factory is found it returns null.

Specified by:
findFactory in interface ServerDeployerMBean

create

public void create(org.jboss.deployment.DeploymentInfo di)
            throws org.jboss.deployment.DeploymentException
Specified by:
create in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

start

public void start(org.jboss.deployment.DeploymentInfo di)
           throws org.jboss.deployment.DeploymentException
Specified by:
start in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

stop

public void stop(org.jboss.deployment.DeploymentInfo di)
          throws org.jboss.deployment.DeploymentException
Specified by:
stop in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

destroy

public void destroy(org.jboss.deployment.DeploymentInfo di)
             throws org.jboss.deployment.DeploymentException
Specified by:
destroy in interface org.jboss.deployment.SubDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

deploy

public void deploy(PortalWebApp pwa)
            throws org.jboss.deployment.DeploymentException
Specified by:
deploy in interface ServerDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

undeploy

public void undeploy(PortalWebApp pwa)
              throws org.jboss.deployment.DeploymentException
Specified by:
undeploy in interface ServerDeployerMBean
Throws:
org.jboss.deployment.DeploymentException

instrument

private void instrument(PortalWebApp pwa)
Instrument the portal web app.