org.apache.avalon.lifecycle
Interface Creator

All Known Implementing Classes:
AbstractCreator

public interface Creator

The Creator interface describes the create and destroy stages that occur between a component and a container during service management. Lifecycle extensions supporting create and destroy stages must implement this interface.

Version:
CVS $Revision: 1.3 $ $Date: 2004/02/28 11:47:19 $
Author:
Avalon Development Team

Method Summary
 void create(java.lang.Object object, Context context)
          Create stage handler.
 void destroy(java.lang.Object object, Context context)
          Destroy stage handler.
 

Method Detail

create

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

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.

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.