1 8 package org.apache.avalon.excalibur.source; 9 10 import org.apache.avalon.framework.component.Component; 11 import org.apache.avalon.framework.logger.AbstractLogEnabled; 12 import org.apache.avalon.framework.thread.ThreadSafe; 13 14 import java.io.IOException ; 15 import java.net.MalformedURLException ; 16 17 22 public class ResourceSourceFactory 23 extends AbstractLogEnabled 24 implements SourceFactory, ThreadSafe 25 { 26 27 31 public Source getSource(String location, SourceParameters parameters) 32 throws MalformedURLException , IOException 33 { 34 if (this.getLogger().isDebugEnabled() ) 35 { 36 this.getLogger().debug("Creating source object for " + location); 37 } 38 return new ResourceSource(location); 39 } 40 41 } 42 | Popular Tags |