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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.coplet.impl.DefaultCopletFactory
All Implemented Interfaces:
Disposable, Component, Configurable, LogEnabled, Serviceable, ThreadSafe, CopletFactory

public class DefaultCopletFactory
extends AbstractLogEnabled
implements Component, ThreadSafe, CopletFactory, Serviceable, Disposable, Configurable

This factory is for creating and managing coplet objects

Version:
CVS $Id: DefaultCopletFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  Map coplets
           
protected  List descriptions
           
protected static long idCounter
           
protected  ServiceManager manager
           
protected  ServiceSelector storeSelector
           
 
Fields inherited from interface org.apache.cocoon.portal.coplet.CopletFactory
ROLE
 
Constructor Summary
DefaultCopletFactory()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
           
 CopletInstanceData newInstance(CopletData copletData)
          Create a new coplet instance.
 void prepare(CopletData copletData)
           
 void prepare(CopletInstanceData copletInstanceData)
           
 void remove(CopletInstanceData copletInstanceData)
          Remove the coplet instance data.
 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

coplets

protected Map coplets

descriptions

protected List descriptions

storeSelector

protected ServiceSelector storeSelector

idCounter

protected static long idCounter
Constructor Detail

DefaultCopletFactory

public DefaultCopletFactory()
Method Detail

prepare

public void prepare(CopletData copletData)
             throws ProcessingException
Specified by:
prepare in interface CopletFactory
Throws:
ProcessingException

prepare

public void prepare(CopletInstanceData copletInstanceData)
             throws ProcessingException
Specified by:
prepare in interface CopletFactory
Throws:
ProcessingException

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

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

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


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.