1 17 package org.apache.excalibur.source.impl; 18 19 import java.io.IOException ; 20 import java.net.MalformedURLException ; 21 import java.util.Map ; 22 23 import org.apache.avalon.framework.container.ContainerUtil; 24 import org.apache.avalon.framework.logger.AbstractLogEnabled; 25 import org.apache.avalon.framework.thread.ThreadSafe; 26 import org.apache.excalibur.source.Source; 27 import org.apache.excalibur.source.SourceFactory; 28 29 41 public class CommonsVFSSourceFactory extends AbstractLogEnabled 42 implements SourceFactory, ThreadSafe 43 { 44 53 public Source getSource( String location, Map parameters ) throws IOException , MalformedURLException 54 { 55 final Source source = new CommonsVFSSource( location, parameters ); 56 ContainerUtil.enableLogging(source, getLogger()); 57 return source; 58 } 59 60 66 public void release( Source source ) 67 { 68 } 70 } 71 | Popular Tags |