org.apache.cocoon.portal.layout.impl
Class DefaultLayoutFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.layout.impl.DefaultLayoutFactory
- All Implemented Interfaces:
- Configurable, Disposable, Initializable, LayoutFactory, LogEnabled, Preloadable, Receiver, Serviceable, ThreadSafe
- public class DefaultLayoutFactory
- extends AbstractLogEnabled
- implements ThreadSafe, LayoutFactory, Configurable, Disposable, Serviceable, Initializable, Receiver
Configuration
layouts |
List of layouts. |
req |
Configuration |
null |
layouts/layout |
Multiple configured layouts.
|
req |
Configuration |
null |
layouts/layout/attribute::name |
Unique layout name. |
req |
String |
null |
layouts/layout/attribute::create-id |
|
|
boolean |
false |
layouts/layout/renderers/attribute::default |
|
req |
String |
null |
layouts/layout/renderers/renderer |
|
req |
Configuration |
null |
layouts/layout/renderers/renderer/attribute::name |
|
req |
String |
null |
layouts/layout/aspects/aspect |
|
req |
String |
null |
- Version:
- $Id: DefaultLayoutFactory.java 327168 2005-10-21 12:56:35Z cziegeler $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layouts
protected Map layouts
descriptions
protected List descriptions
manager
protected ServiceManager manager
layoutsConf
protected Configuration[] layoutsConf
idCounter
protected static long idCounter
DefaultLayoutFactory
public DefaultLayoutFactory()
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)
configureLayout
protected void configureLayout(Configuration layoutConf)
throws ConfigurationException
- Configure a layout
- Throws:
ConfigurationException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
- See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
init
protected void init()
prepareLayout
public void prepareLayout(Layout layout)
- Description copied from interface:
LayoutFactory
- This method is invoked for a newly loaded profile
- Specified by:
prepareLayout
in interface LayoutFactory
- See Also:
LayoutFactory.prepareLayout(org.apache.cocoon.portal.layout.Layout)
newInstance
public Layout newInstance(String layoutName)
throws ProcessingException
- Description copied from interface:
LayoutFactory
- Create a new layout instance.
The instance is also registered at the profile manager.
- Specified by:
newInstance
in interface LayoutFactory
- Throws:
ProcessingException
- See Also:
LayoutFactory.newInstance(java.lang.String)
getLayoutDescriptions
public List getLayoutDescriptions()
- Specified by:
getLayoutDescriptions
in interface LayoutFactory
- See Also:
LayoutFactory.getLayoutDescriptions()
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
- See Also:
Disposable.dispose()
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
- See Also:
Initializable.initialize()
inform
public void inform(LayoutEvent event,
PortalService service)
- See Also:
Receiver
remove
public void remove(Layout layout)
throws ProcessingException
- Description copied from interface:
LayoutFactory
- Remove the layout instance.
The instance (and all childs) will also be unregistered from
the profile manager.
- Specified by:
remove
in interface LayoutFactory
- Throws:
ProcessingException
- See Also:
LayoutFactory.remove(org.apache.cocoon.portal.layout.Layout)
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.