org.apache.avalon.lifecycle
Class AbstractCreator

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.lifecycle.AbstractCreator
All Implemented Interfaces:
Creator, LogEnabled
Direct Known Subclasses:
InstrumentableCreator, ReflectiveConfigurator

public class AbstractCreator
extends AbstractLogEnabled
implements Creator

Abstract implementation of a Creator.

Author:
Avalon Development Team

Constructor Summary
AbstractCreator()
           
 
Method Summary
 void create(java.lang.Object object, Context context)
          Create stage handler.
 void destroy(java.lang.Object object, Context context)
          Destroy stage handler.
 
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
 

Constructor Detail

AbstractCreator

public AbstractCreator()
Method Detail

create

public void create(java.lang.Object object,
                   Context context)
            throws java.lang.Exception
Create stage handler.

Specified by:
create in interface Creator
Parameters:
object - the object that is being created
context - the context instance required by the create handler implementation
Throws:
java.lang.Exception - if an error occurs

destroy

public void destroy(java.lang.Object object,
                    Context context)
Destroy stage handler.

Specified by:
destroy in interface Creator
Parameters:
object - the object that is being destroyed
context - the context instance required by the handler implementation


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.