org.jboss.portal.theme.deployment.jboss
Class LayoutFeaturesDeploymentFactory

java.lang.Object
  extended by org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
      extended by org.jboss.portal.theme.deployment.jboss.LayoutFeaturesDeploymentFactory
All Implemented Interfaces:
URLFilter, DeploymentFactory

public class LayoutFeaturesDeploymentFactory
extends AbstractDeploymentFactory

Create a layout deployer.

Version:
$Revision: 5682 $
Author:
Martin Holzner

Field Summary
protected static java.util.regex.Pattern URL_PATTERN
           
protected static java.util.regex.Pattern URL_PATTERN2
           
 
Fields inherited from class org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
deployer, log, name, registrationControlledByService, setupLocation, setupURL
 
Constructor Summary
LayoutFeaturesDeploymentFactory()
           
 
Method Summary
 boolean acceptDir(java.net.URL url)
          Accept only the WEB-INF directory by default.
 boolean acceptFile(java.net.URL url)
          Return true if the filter accepts the url.
 LayoutService getLayoutService()
           
 Deployment newInstance(java.net.URL url, PortalWebApp pwa, javax.management.MBeanServer mbeanServer)
          Create a new instance of the deployment.
 void setLayoutService(LayoutService layoutService)
           
 
Methods inherited from class org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
create, destroy, getDeployer, getName, getSetupLocation, getSetupURL, isRegistrationControlledByService, registerFactory, setDeployer, setRegistrationControlledByService, setSetupLocation, start, stop, unregisterFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_PATTERN

protected static final java.util.regex.Pattern URL_PATTERN

URL_PATTERN2

protected static final java.util.regex.Pattern URL_PATTERN2
Constructor Detail

LayoutFeaturesDeploymentFactory

public LayoutFeaturesDeploymentFactory()
Method Detail

acceptFile

public boolean acceptFile(java.net.URL url)
Description copied from interface: URLFilter
Return true if the filter accepts the url.


acceptDir

public boolean acceptDir(java.net.URL url)
Description copied from class: AbstractDeploymentFactory
Accept only the WEB-INF directory by default.

Specified by:
acceptDir in interface URLFilter
Overrides:
acceptDir in class AbstractDeploymentFactory

newInstance

public Deployment newInstance(java.net.URL url,
                              PortalWebApp pwa,
                              javax.management.MBeanServer mbeanServer)
                       throws DeploymentException
Description copied from interface: DeploymentFactory
Create a new instance of the deployment.

Parameters:
url - the URL of the file to deploy
pwa - the web application that contains the file to deploy or null if it does not exist
mbeanServer - the JMX mbean server
Returns:
a deployment ready to be processed
Throws:
DeploymentException - if the deployment cannot be created

getLayoutService

public LayoutService getLayoutService()

setLayoutService

public void setLayoutService(LayoutService layoutService)