org.apache.cocoon.portal.impl
Class DefaultPortalComponentManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.impl.DefaultPortalComponentManager
All Implemented Interfaces:
Disposable, Configurable, LogEnabled, Serviceable, ThreadSafe, PortalComponentManager

public class DefaultPortalComponentManager
extends AbstractLogEnabled
implements PortalComponentManager, Serviceable, Disposable, ThreadSafe, Configurable

Default PortalComponentManager implementation

Version:
CVS $Id: DefaultPortalComponentManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler
See Also:
TODO Handle non ThreadSafe components

Field Summary
protected  Context context
           
protected  CopletFactory copletFactory
           
protected  String copletFactoryRole
           
protected  EventManager eventManager
           
protected  String eventManagerRole
           
protected  LayoutFactory layoutFactory
           
protected  String layoutFactoryRole
           
protected  LinkService linkService
           
protected  String linkServiceRole
           
protected  ServiceManager manager
          The avalon component manager
protected  PortalManager portalManager
           
protected  String portalManagerRole
           
protected  PortalService portalService
          The portal service
protected  ProfileManager profileManager
           
protected  String profileManagerRole
           
protected  Map renderers
           
protected  ServiceSelector rendererSelector
           
protected  String rendererSelectorRole
           
 
Constructor Summary
DefaultPortalComponentManager(PortalService service, Context context)
          Create a new portal component manager.
 
Method Summary
 void configure(Configuration config)
           
 void dispose()
           
 Context getComponentContext()
          Return the component context.
 CopletFactory getCopletFactory()
          Get the coplet factory.
 EventManager getEventManager()
          Get the event manager
 LayoutFactory getLayoutFactory()
          Get the layout factory
 LinkService getLinkService()
          Get the link service.
 PortalManager getPortalManager()
          Get the portal manager
 ProfileManager getProfileManager()
          Get the current profile manager.
 Renderer getRenderer(String hint)
          Get the renderer.
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ServiceManager manager
The avalon component manager


portalService

protected final PortalService portalService
The portal service


profileManagerRole

protected String profileManagerRole

profileManager

protected ProfileManager profileManager

linkServiceRole

protected String linkServiceRole

linkService

protected LinkService linkService

rendererSelectorRole

protected String rendererSelectorRole

rendererSelector

protected ServiceSelector rendererSelector

renderers

protected Map renderers

copletFactoryRole

protected String copletFactoryRole

copletFactory

protected CopletFactory copletFactory

layoutFactoryRole

protected String layoutFactoryRole

layoutFactory

protected LayoutFactory layoutFactory

eventManagerRole

protected String eventManagerRole

eventManager

protected EventManager eventManager

portalManagerRole

protected String portalManagerRole

portalManager

protected PortalManager portalManager

context

protected final Context context
Constructor Detail

DefaultPortalComponentManager

public DefaultPortalComponentManager(PortalService service,
                                     Context context)
Create a new portal component manager. Each portal has a own component manager that manages all central components for this portal. This implementation stores the portal service (a global singleton) to pass it to the other components (TODO).

Parameters:
service - The portal service.
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

getLinkService

public LinkService getLinkService()
Description copied from interface: PortalComponentManager
Get the link service.

Specified by:
getLinkService in interface PortalComponentManager

getProfileManager

public ProfileManager getProfileManager()
Description copied from interface: PortalComponentManager
Get the current profile manager.

Specified by:
getProfileManager in interface PortalComponentManager

getEventManager

public EventManager getEventManager()
Description copied from interface: PortalComponentManager
Get the event manager

Specified by:
getEventManager in interface PortalComponentManager

dispose

public void dispose()
Specified by:
dispose in interface Disposable

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

getRenderer

public Renderer getRenderer(String hint)
Description copied from interface: PortalComponentManager
Get the renderer.

Specified by:
getRenderer in interface PortalComponentManager

getCopletFactory

public CopletFactory getCopletFactory()
Description copied from interface: PortalComponentManager
Get the coplet factory.

Specified by:
getCopletFactory in interface PortalComponentManager

getLayoutFactory

public LayoutFactory getLayoutFactory()
Description copied from interface: PortalComponentManager
Get the layout factory

Specified by:
getLayoutFactory in interface PortalComponentManager

getPortalManager

public PortalManager getPortalManager()
Description copied from interface: PortalComponentManager
Get the portal manager

Specified by:
getPortalManager in interface PortalComponentManager
See Also:
PortalComponentManager.getPortalManager()

getComponentContext

public Context getComponentContext()
Description copied from interface: PortalComponentManager
Return the component context.

Specified by:
getComponentContext in interface PortalComponentManager
See Also:
PortalComponentManager.getComponentContext()


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