org.apache.avalon.activation.lifecycle
Interface Factory


public interface Factory

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

Version:
$Revision: 1.2 $ $Date: 2003/10/17 06:44:49 $
Author:
Avalon Development Team

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

Method Detail

getDeploymentModel

public DeploymentModel getDeploymentModel()
Return the component deployment model.

Throws:
LifecycleException

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.