org.apache.cocoon.portal.coplet.impl
Class DefaultCopletFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.impl.AbstractComponent
          extended byorg.apache.cocoon.portal.coplet.impl.DefaultCopletFactory
All Implemented Interfaces:
Contextualizable, CopletFactory, Disposable, Initializable, LogEnabled, Serviceable, ThreadSafe

public class DefaultCopletFactory
extends AbstractComponent
implements CopletFactory

This factory is for creating and managing coplet objects.

Version:
$Id: DefaultCopletFactory.java 328034 2005-10-24 11:18:37Z cziegeler $

Field Summary
protected static long idCounter
           
 
Fields inherited from class org.apache.cocoon.portal.impl.AbstractComponent
context, manager, portalService
 
Fields inherited from interface org.apache.cocoon.portal.coplet.CopletFactory
ROLE
 
Constructor Summary
DefaultCopletFactory()
           
 
Method Summary
 CopletInstanceData newInstance(CopletData copletData)
          Create a new coplet instance.
 CopletInstanceData newInstance(CopletData copletData, String id)
          Create a new coplet instance.
 void remove(CopletInstanceData copletInstanceData)
          Remove the coplet instance data.
 
Methods inherited from class org.apache.cocoon.portal.impl.AbstractComponent
contextualize, dispose, initialize, service
 
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

idCounter

protected static long idCounter
Constructor Detail

DefaultCopletFactory

public DefaultCopletFactory()
Method Detail

newInstance

public CopletInstanceData newInstance(CopletData copletData)
                               throws ProcessingException
Description copied from interface: CopletFactory
Create a new coplet instance. This is also registered at the profile manager.

Specified by:
newInstance in interface CopletFactory
Throws:
ProcessingException
See Also:
CopletFactory.newInstance(org.apache.cocoon.portal.coplet.CopletData)

newInstance

public CopletInstanceData newInstance(CopletData copletData,
                                      String id)
                               throws ProcessingException
Description copied from interface: CopletFactory
Create a new coplet instance. This is also registered at the profile manager.

Specified by:
newInstance in interface CopletFactory
Throws:
ProcessingException
See Also:
CopletFactory.newInstance(org.apache.cocoon.portal.coplet.CopletData, String)

remove

public void remove(CopletInstanceData copletInstanceData)
            throws ProcessingException
Description copied from interface: CopletFactory
Remove the coplet instance data. This is also unregistered at the profile manager.

Specified by:
remove in interface CopletFactory
Throws:
ProcessingException
See Also:
CopletFactory.remove(org.apache.cocoon.portal.coplet.CopletInstanceData)


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