org.apache.avalon.repository.provider
Interface Factory

All Known Implementing Classes:
DefaultFactory

public interface Factory

A generic application factory.

Version:
$Revision: 1.2 $
Author:
Stephen McConnell

Method Summary
 Object create()
          Create a new instance of an application.
 Object create(Map criteria)
          Create a new instance of an application.
 Map createDefaultCriteria()
          Return a new instance of default criteria for the factory.
 

Method Detail

createDefaultCriteria

public Map createDefaultCriteria()
Return a new instance of default criteria for the factory.

Returns:
a new criteria instance

create

public Object create()
              throws Exception
Create a new instance of an application.

Returns:
the application instance
Throws:
Exception

create

public Object create(Map criteria)
              throws Exception
Create a new instance of an application.

Parameters:
criteria - the creation criteria
Returns:
the application instance
Throws:
Exception


Copyright © Apache Software Foundation. All Rights Reserved.