org.apache.lenya.cms.publication
Class PageEnvelopeFactory

java.lang.Object
  extended by org.apache.lenya.cms.publication.PageEnvelopeFactory

public class PageEnvelopeFactory
extends java.lang.Object

Common entry point for creating page envelopes.


Constructor Summary
protected PageEnvelopeFactory()
          Creates a new PageEnvelopeFactory.
 
Method Summary
static PageEnvelopeFactory getInstance()
          Returns the singleton PageEnvelopeFactory.
 PageEnvelope getPageEnvelope(java.util.Map objectModel)
          Returns the page envelope for the object model of a Cocoon component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageEnvelopeFactory

protected PageEnvelopeFactory()
Creates a new PageEnvelopeFactory.

Method Detail

getInstance

public static PageEnvelopeFactory getInstance()
Returns the singleton PageEnvelopeFactory.

Returns:
The factory.

getPageEnvelope

public PageEnvelope getPageEnvelope(java.util.Map objectModel)
                             throws PageEnvelopeException
Returns the page envelope for the object model of a Cocoon component.

Parameters:
objectModel - The object model.
Returns:
A page envelope.
Throws:
PageEnvelopeException - if something went wrong.


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