mcconnell 2003/11/20 14:35:21
Modified: repository/impl/src/java/org/apache/avalon/repository/impl
DefaultRepositoryFactory.java
Log:
Add default factory creation.
Revision Changes Path
1.11 +11 -1
avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultRepositoryFactory.java
Index: DefaultRepositoryFactory.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultRepositoryFactory.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- DefaultRepositoryFactory.java 20 Nov 2003 05:41:00 -0000 1.10
+++ DefaultRepositoryFactory.java 20 Nov 2003 22:35:21 -0000 1.11
@@ -200,6 +200,16 @@
return context ;
}
+ /**
+ * Creates a new Repository using a defaults.
+ *
+ * @return the newly created Repository
+ * @throws RepositoryException if there is a problem creating the Repository
+ */
+ public Repository create() throws RepositoryException
+ {
+ return create( getDefaultContext() );
+ }
/**
* Creates a file repository using the properties of a configuration bean.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]