org.apache.cocoon.portal.coplets.basket
Class AddToBasketAspect
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
org.apache.cocoon.portal.coplets.basket.AddToBasketAspect
- All Implemented Interfaces:
- Disposable, LogEnabled, RendererAspect, Serviceable, ThreadSafe
- public final class AddToBasketAspect
- extends AbstractAspect
- implements Disposable
This renderer adds a link to add this coplet to the basket.
It checks the coplet data for the attributes
basket-content and basket-link (boolean values) to stream
out the elements.
- Version:
- $Id: AddToBasketAspect.java 326427 2005-10-19 07:21:56Z cziegeler $
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
basketManager
protected BasketManager basketManager
- The basket manager
AddToBasketAspect
public AddToBasketAspect()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Overrides:
service
in class AbstractAspect
- Throws:
ServiceException
- See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
- See Also:
Disposable.dispose()
toSAX
public void toSAX(RendererAspectContext context,
Layout layout,
PortalService service,
ContentHandler contenthandler)
throws SAXException
- Description copied from interface:
RendererAspect
- Stream out raw layout
- Specified by:
toSAX
in interface RendererAspect
- Overrides:
toSAX
in class AbstractAspect
- Throws:
SAXException
- See Also:
RendererAspect.toSAX(org.apache.cocoon.portal.layout.renderer.aspect.RendererAspectContext, org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)
prepareConfiguration
public Object prepareConfiguration(Parameters configuration)
throws ParameterException
- Description copied from interface:
RendererAspect
- Compile the configuration.
A renderer aspect can "compile" the configuration in
order to increase performance.
If the renderer does not want to compile it should
simply return the configuration.
The "compiled" configuration is available during streaming via the context object.
This method can also be used for validating the configuration.
- Specified by:
prepareConfiguration
in interface RendererAspect
- Overrides:
prepareConfiguration
in class AbstractAspect
- Throws:
ParameterException
- See Also:
RendererAspect.prepareConfiguration(org.apache.avalon.framework.parameters.Parameters)
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.