org.apache.avalon.repository.impl
Class DefaultFactory

java.lang.Object
  extended byorg.apache.avalon.repository.impl.DefaultFactory
All Implemented Interfaces:
Factory

public class DefaultFactory
extends Object
implements Factory

The default repository factory implementation.

Version:
$Revision: 1.3 $
Author:
Alex Karasulu, Stephen McConnell

Constructor Summary
DefaultFactory(InitialContext context)
          Creation of a new default repository manager factory.
 
Method Summary
 Object create()
          Create a new instance of a repository administrator using the default parameters.
 Object create(Map map)
          Create a new instance of a repository using the supplied parameters.
 Map createDefaultCriteria()
          Create a new instance of the default criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFactory

public DefaultFactory(InitialContext context)
Creation of a new default repository manager factory.

Parameters:
context - the initial context
Throws:
NullPointerException - if the supplied context is null
Method Detail

createDefaultCriteria

public Map createDefaultCriteria()
Create a new instance of the default criteria.

Specified by:
createDefaultCriteria in interface Factory
Returns:
a new default criteria instance

create

public Object create()
              throws Exception
Create a new instance of a repository administrator using the default parameters.

Specified by:
create in interface Factory
Returns:
the application instance
Throws:
Exception - if a repository creation error occurs

create

public Object create(Map map)
              throws Exception
Create a new instance of a repository using the supplied parameters.

Specified by:
create in interface Factory
Parameters:
map - a map of repository parameters
Returns:
the repository
Throws:
Exception


Copyright © Apache Software Foundation. All Rights Reserved.