cziegeler 02/01/03 05:05:41
Modified: src/scratchpad/org/apache/avalon/excalibur/source
ResourceSourceFactory.java
Log:
Added resource protocol, cleaned up Source interface
Revision Changes Path
1.2 +12 -3
jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source/ResourceSourceFactory.java
Index: ResourceSourceFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source/ResourceSourceFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ResourceSourceFactory.java 3 Jan 2002 13:03:31 -0000 1.1
+++ ResourceSourceFactory.java 3 Jan 2002 13:05:41 -0000 1.2
@@ -8,6 +8,8 @@
package org.apache.avalon.excalibur.source;
import org.apache.avalon.framework.component.Component;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.framework.thread.ThreadSafe;
import java.io.IOException;
import java.net.MalformedURLException;
@@ -15,17 +17,24 @@
/**
* A factory for the Resource protocol
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version $Id: ResourceSourceFactory.java,v 1.1 2002/01/03 13:03:31
cziegeler Exp $
+ * @version $Id: ResourceSourceFactory.java,v 1.2 2002/01/03 13:05:41
cziegeler Exp $
*/
public class ResourceSourceFactory
-implements SourceFactory {
+implements SourceFactory, ThreadSafe
+extends AbstractLogEnabled
+{
/**
* Get a <code>Source</code> object.
* @param parameters This is optional.
*/
public Source getSource(String location, SourceParameters parameters)
- throws MalformedURLException, IOException {
+ throws MalformedURLException, IOException
+ {
+ if (this.getLogger().isDebugEnabled() )
+ {
+ this.getLogger().debug("Creating source object for " + location);
+ }
return new ResourceSource(location);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>