org.jboss.portal.portlet.deployment.jboss
Class PortletAppDeploymentFactory

java.lang.Object
  extended by org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
      extended by org.jboss.portal.portlet.deployment.jboss.PortletAppDeploymentFactory
All Implemented Interfaces:
org.jboss.portal.common.net.URLFilter, DeploymentFactory
Direct Known Subclasses:
PortletAppDeploymentFactory

public class PortletAppDeploymentFactory
extends AbstractDeploymentFactory

todo : remove unused ConfigService

Version:
$Revision: 10337 $
Author:
Julien Viet

Field Summary
protected  org.jboss.portal.portlet.container.managed.ManagedObjectRegistryEventListener bridgeToInvoker
          Bridge managed object event to add/remove portlet container in portlet container invoker.
protected  ServerConfig config
          .
protected  org.xml.sax.EntityResolver jbossPortletEntityResolver
          .
protected  PortletSecurityService portletSecurityService
          .
protected  JBossApplicationMetaData standardJBossApplicationMetaData
          .
protected  java.lang.String standardJBossApplicationMetaDataLocation
          .
protected static java.util.regex.Pattern urlPattern
          .
 
Fields inherited from class org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
deployer, log, name, registrationControlledByService, setupLocation, setupURL
 
Constructor Summary
PortletAppDeploymentFactory()
           
 
Method Summary
 boolean acceptFile(java.net.URL url)
           
 JBossApplicationMetaDataFactory createJBossApplicationMetaDataFactory()
          Subclasses can provide a subclass of JBossApplicationMetaDataFactory.
 ServerConfig getConfig()
           
 InfoBuilderFactory getCoreInfoBuilderFactory()
           
 org.xml.sax.EntityResolver getJBossPortletEntityResolver()
           
 org.jboss.portal.portlet.PortletInvoker getPortletContainerInvoker()
           
 PortletSecurityService getPortletSecurityService()
           
 JBossApplicationMetaData getStandardJBossApplicationMetaData()
           
 java.lang.String getStandardJBossApplicationMetaDataLocation()
           
 void loadStandardJBossApplicationMetaData()
           
 Deployment newInstance(java.net.URL url, PortalWebApp pwa, javax.management.MBeanServer mbeanServer)
          Create a new instance of the deployment.
 void setConfig(ServerConfig config)
           
 void setCoreInfoBuilderFactory(InfoBuilderFactory coreInfoBuilderFactory)
           
 void setJBossPortletEntityResolver(org.xml.sax.EntityResolver jbossPortletEntityResolver)
           
 void setPortletContainerInvoker(org.jboss.portal.portlet.PortletInvoker portletContainerInvoker)
           
 void setPortletSecurityService(PortletSecurityService portletSecurityService)
           
 void setStandardJBossApplicationMetaDataLocation(java.lang.String standardJBossApplicationMetaDataLocation)
           
 void start()
          Register the factory only if it is controlled by the service lifecycle.
 void stop()
          Unregister the factory only if it is controlled by the service lifecycle.
 
Methods inherited from class org.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
acceptDir, create, destroy, getDeployer, getName, getSetupLocation, getSetupURL, isRegistrationControlledByService, registerFactory, setDeployer, setRegistrationControlledByService, setSetupLocation, unregisterFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

urlPattern

protected static final java.util.regex.Pattern urlPattern
.


config

protected ServerConfig config
.


portletSecurityService

protected PortletSecurityService portletSecurityService
.


standardJBossApplicationMetaDataLocation

protected java.lang.String standardJBossApplicationMetaDataLocation
.


standardJBossApplicationMetaData

protected JBossApplicationMetaData standardJBossApplicationMetaData
.


jbossPortletEntityResolver

protected org.xml.sax.EntityResolver jbossPortletEntityResolver
.


bridgeToInvoker

protected final org.jboss.portal.portlet.container.managed.ManagedObjectRegistryEventListener bridgeToInvoker
Bridge managed object event to add/remove portlet container in portlet container invoker.

Constructor Detail

PortletAppDeploymentFactory

public PortletAppDeploymentFactory()
Method Detail

getJBossPortletEntityResolver

public org.xml.sax.EntityResolver getJBossPortletEntityResolver()

setJBossPortletEntityResolver

public void setJBossPortletEntityResolver(org.xml.sax.EntityResolver jbossPortletEntityResolver)

setCoreInfoBuilderFactory

public void setCoreInfoBuilderFactory(InfoBuilderFactory coreInfoBuilderFactory)

getCoreInfoBuilderFactory

public InfoBuilderFactory getCoreInfoBuilderFactory()

getConfig

public ServerConfig getConfig()

setConfig

public void setConfig(ServerConfig config)

getStandardJBossApplicationMetaDataLocation

public java.lang.String getStandardJBossApplicationMetaDataLocation()

setStandardJBossApplicationMetaDataLocation

public void setStandardJBossApplicationMetaDataLocation(java.lang.String standardJBossApplicationMetaDataLocation)

getStandardJBossApplicationMetaData

public JBossApplicationMetaData getStandardJBossApplicationMetaData()

acceptFile

public boolean acceptFile(java.net.URL 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 or null if it does not exist
mbeanServer - the JMX mbean server
Returns:
a deployment ready to be processed
Throws:
org.jboss.deployment.DeploymentException - if the deployment cannot be created

start

public void start()
           throws java.lang.Exception
Description copied from class: AbstractDeploymentFactory
Register the factory only if it is controlled by the service lifecycle.

Overrides:
start in class AbstractDeploymentFactory
Throws:
java.lang.Exception

loadStandardJBossApplicationMetaData

public void loadStandardJBossApplicationMetaData()

stop

public void stop()
Description copied from class: AbstractDeploymentFactory
Unregister the factory only if it is controlled by the service lifecycle.

Overrides:
stop in class AbstractDeploymentFactory

getPortletSecurityService

public PortletSecurityService getPortletSecurityService()

setPortletSecurityService

public void setPortletSecurityService(PortletSecurityService portletSecurityService)

createJBossApplicationMetaDataFactory

public JBossApplicationMetaDataFactory createJBossApplicationMetaDataFactory()
Subclasses can provide a subclass of JBossApplicationMetaDataFactory.


getPortletContainerInvoker

public org.jboss.portal.portlet.PortletInvoker getPortletContainerInvoker()

setPortletContainerInvoker

public void setPortletContainerInvoker(org.jboss.portal.portlet.PortletInvoker portletContainerInvoker)