org.apache.avalon.activation.lifecycle
Interface Factory

All Known Implementing Classes:
DefaultAppliance

public interface Factory

The Factory interface exposes an operation though which a new component instance may be accessed.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/10 08:57:35 $
Author:
Avalon Development Team

Method Summary
 void destroy(Object instance)
          Decommission and dispose of the supplied component.
 Object newInstance()
          Create a new instance of a component.
 

Method Detail

newInstance

public Object newInstance()
                   throws LifecycleException
Create a new instance of a component.

Throws:
LifecycleException

destroy

public void destroy(Object instance)
Decommission and dispose of the supplied component.

Parameters:
instance - the object to decommission


Copyright © Apache Software Foundation. All Rights Reserved.