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

ThemeDeploymentFactory - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.theme.deployment.jboss
Class ThemeDeploymentFactory

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
                  extended byorg.jboss.portal.theme.deployment.jboss.ThemeDeploymentFactory
All Implemented Interfaces:
DeploymentFactory, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ThemeDeploymentFactory
extends AbstractDeploymentFactory

Create a new Theme Deployer.

Version:
$Revision: 5448 $
Author:
Martin Holzner

Field Summary
private  ThemeService themeService
           
protected static java.util.regex.Pattern URL_PATTERN
           
 
Fields inherited from class org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
deployer, name, registrationControlledByService, setupLocation, setupURL
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, 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
 
Constructor Summary
ThemeDeploymentFactory()
           
 
Method Summary
 boolean accept(java.net.URL url)
          Return true if the factory accept to create a deployment for this url.
 ThemeService getThemeService()
           
 Deployment newInstance(java.net.URL url, PortalWebApp pwa, javax.management.MBeanServer mbeanServer)
          Create a new instance of the deployment.
 void setThemeService(ThemeService themeService)
           
 
Methods inherited from class org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
acceptDir, createService, destroyService, getDeployer, getName, getSetupLocation, getSetupURL, isRegistrationControlledByService, registerFactory, setDeployer, setRegistrationControlledByService, setSetupLocation, startService, stopService, unregisterFactory
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister
 
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
 

Field Detail

URL_PATTERN

protected static final java.util.regex.Pattern URL_PATTERN

themeService

private ThemeService themeService
Constructor Detail

ThemeDeploymentFactory

public ThemeDeploymentFactory()
Method Detail

accept

public boolean accept(java.net.URL url)
Description copied from interface: DeploymentFactory
Return true if the factory accept to create a deployment for this url.


newInstance

public Deployment newInstance(java.net.URL url,
                              PortalWebApp pwa,
                              javax.management.MBeanServer mbeanServer)
                       throws org.jboss.deployment.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
mbeanServer - the JMX mbean server
Returns:
a deployment
Throws:
org.jboss.deployment.DeploymentException - if the deployment cannot be created

getThemeService

public ThemeService getThemeService()

setThemeService

public void setThemeService(ThemeService themeService)