org.apache.cocoon.portal.impl
Class DefaultPortalComponentManager

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

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

Default PortalComponentManager implementation.

Version:
$Id: DefaultPortalComponentManager.java 322471 2005-10-16 13:24:19Z cziegeler $

Field Summary
protected  Context context
           
protected  CopletFactory copletFactory
           
protected  Core core
          The Cocoon core.
protected  EventManager eventManager
           
protected  LayoutFactory layoutFactory
           
protected  LinkService linkService
           
protected  ServiceManager manager
          The avalon component manager
protected  PortalManager portalManager
           
protected  PortalService portalService
          The portal service
protected  ProfileManager profileManager
           
protected  Map renderers
           
 
Constructor Summary
DefaultPortalComponentManager(PortalService service, Context context)
          Create a new portal component manager.
 
Method Summary
 void dispose()
           
 Context getComponentContext()
          Return the component context.
 CopletFactory getCopletFactory()
          Get the coplet factory.
 Core getCore()
          Get the Cocoon core object.
 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


profileManager

protected ProfileManager profileManager

linkService

protected LinkService linkService

renderers

protected Map renderers

copletFactory

protected CopletFactory copletFactory

layoutFactory

protected LayoutFactory layoutFactory

eventManager

protected EventManager eventManager

portalManager

protected PortalManager portalManager

context

protected final Context context

core

protected Core core
The Cocoon core.

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
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getLinkService

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

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

getProfileManager

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

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

getEventManager

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

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

dispose

public void dispose()
Specified by:
dispose in interface Disposable
See Also:
Disposable.dispose()

getRenderer

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

Specified by:
getRenderer in interface PortalComponentManager
See Also:
PortalComponentManager.getRenderer(java.lang.String)

getCopletFactory

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

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

getLayoutFactory

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

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

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()

getCore

public Core getCore()
Description copied from interface: PortalComponentManager
Get the Cocoon core object.

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


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.