org.apache.jetspeed.factory
Class JetspeedPortletFactory

java.lang.Object
  extended by org.apache.jetspeed.factory.JetspeedPortletFactory
All Implemented Interfaces:
PortletFactory

public class JetspeedPortletFactory
extends java.lang.Object
implements PortletFactory

JetspeedPortletFactory

Version:
$Id: JetspeedPortletFactory.java 593513 2007-11-09 12:48:34Z woonsan $
Author:
Scott T. Weaver

Constructor Summary
JetspeedPortletFactory()
           
JetspeedPortletFactory(boolean autoSwitchConfigMode, boolean autoSwitchEditDefaultsModeToEditMode)
           
 
Method Summary
 java.lang.String getCustomConfigModePortletUniqueName()
           
 java.lang.ClassLoader getPortletApplicationClassLoader(PortletApplication pa)
           
 PortletInstance getPortletInstance(javax.servlet.ServletContext servletContext, org.apache.pluto.om.portlet.PortletDefinition pd)
          Gets a portlet by either creating it or returning a handle to it from the portlet 'cache'
 boolean getPortletProxyUsed()
           
 javax.portlet.PreferencesValidator getPreferencesValidator(org.apache.pluto.om.portlet.PortletDefinition pd)
           
 boolean isPortletApplicationRegistered(PortletApplication pa)
           
 void registerPortletApplication(PortletApplication pa, java.lang.ClassLoader cl)
           
 void setCustomConfigModePortletUniqueName(java.lang.String customConfigModePortletUniqueName)
           
 void setPortletProxyUsed(boolean portletProxyUsed)
           
 void unregisterPortletApplication(PortletApplication pa)
           
 void updatePortletConfig(org.apache.pluto.om.portlet.PortletDefinition pd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetspeedPortletFactory

public JetspeedPortletFactory()

JetspeedPortletFactory

public JetspeedPortletFactory(boolean autoSwitchConfigMode,
                              boolean autoSwitchEditDefaultsModeToEditMode)
Method Detail

setPortletProxyUsed

public void setPortletProxyUsed(boolean portletProxyUsed)

getPortletProxyUsed

public boolean getPortletProxyUsed()

setCustomConfigModePortletUniqueName

public void setCustomConfigModePortletUniqueName(java.lang.String customConfigModePortletUniqueName)

getCustomConfigModePortletUniqueName

public java.lang.String getCustomConfigModePortletUniqueName()

registerPortletApplication

public void registerPortletApplication(PortletApplication pa,
                                       java.lang.ClassLoader cl)
Specified by:
registerPortletApplication in interface PortletFactory

unregisterPortletApplication

public void unregisterPortletApplication(PortletApplication pa)
Specified by:
unregisterPortletApplication in interface PortletFactory

getPreferencesValidator

public javax.portlet.PreferencesValidator getPreferencesValidator(org.apache.pluto.om.portlet.PortletDefinition pd)
Specified by:
getPreferencesValidator in interface PortletFactory

getPortletInstance

public PortletInstance getPortletInstance(javax.servlet.ServletContext servletContext,
                                          org.apache.pluto.om.portlet.PortletDefinition pd)
                                   throws javax.portlet.PortletException
Gets a portlet by either creating it or returning a handle to it from the portlet 'cache'

Specified by:
getPortletInstance in interface PortletFactory
Parameters:
portletDefinition - The definition of the portlet
Returns:
PortletInstance
Throws:
javax.portlet.PortletException

updatePortletConfig

public void updatePortletConfig(org.apache.pluto.om.portlet.PortletDefinition pd)
Specified by:
updatePortletConfig in interface PortletFactory

getPortletApplicationClassLoader

public java.lang.ClassLoader getPortletApplicationClassLoader(PortletApplication pa)
Specified by:
getPortletApplicationClassLoader in interface PortletFactory

isPortletApplicationRegistered

public boolean isPortletApplicationRegistered(PortletApplication pa)
Specified by:
isPortletApplicationRegistered in interface PortletFactory


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.