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

java.lang.Object
  extended by SubDeployerSupport
      extended by org.jboss.portal.server.deployment.jboss.ServerDeployer
All Implemented Interfaces:
ServerDeployerMBean

public class ServerDeployer
extends SubDeployerSupport
implements ServerDeployerMBean

Version:
$Revision: 7379 $
Author:
Julien Viet

Constructor Summary
ServerDeployer()
           
 
Method Summary
 boolean accepts(DeploymentInfo di)
          This should never be called for server deployment.
 void create(DeploymentInfo di)
           
 void deploy(PortalWebApp pwa)
           
 void destroy(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()
           
protected  void processNestedDeployments(DeploymentInfo di)
           
 void registerFactory(java.lang.String name, URLFilter filter, DeploymentFactory factory, java.net.URL setupURL)
           
 void setPortalServer(Server portalServer)
           
 void start(DeploymentInfo di)
           
 void stop(DeploymentInfo di)
           
 void undeploy(PortalWebApp pwa)
           
 void unregisterFactory(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerDeployer

public ServerDeployer()
Method Detail

getFactories

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

accepts

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


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(java.lang.String name,
                            URLFilter filter,
                            DeploymentFactory factory,
                            java.net.URL setupURL)
Specified by:
registerFactory in interface ServerDeployerMBean
Parameters:
name - the factory name
filter - filter urls
factory - create deployment
setupURL - an optional setup URL

unregisterFactory

public void unregisterFactory(java.lang.String name)
Specified by:
unregisterFactory in interface ServerDeployerMBean
Parameters:
name - the factory name to unregister

processNestedDeployments

protected void processNestedDeployments(DeploymentInfo di)
                                 throws DeploymentException
Throws:
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(DeploymentInfo di)
            throws DeploymentException
Throws:
DeploymentException

start

public void start(DeploymentInfo di)
           throws DeploymentException
Throws:
DeploymentException

stop

public void stop(DeploymentInfo di)
          throws DeploymentException
Throws:
DeploymentException

destroy

public void destroy(DeploymentInfo di)
             throws DeploymentException
Throws:
DeploymentException

deploy

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

undeploy

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