liquibase.integration.ant
Class AntResourceAccessor

java.lang.Object
  extended by liquibase.integration.ant.AntResourceAccessor
All Implemented Interfaces:
ResourceAccessor

public class AntResourceAccessor
extends Object
implements ResourceAccessor

An implementation of FileOpener that is specific to how Ant works.


Constructor Summary
AntResourceAccessor(org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath)
           
 
Method Summary
 InputStream getResourceAsStream(String file)
           
 Enumeration<URL> getResources(String packageName)
           
 ClassLoader toClassLoader()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AntResourceAccessor

public AntResourceAccessor(org.apache.tools.ant.Project project,
                           org.apache.tools.ant.types.Path classpath)
Method Detail

getResourceAsStream

public InputStream getResourceAsStream(String file)
                                throws IOException
Specified by:
getResourceAsStream in interface ResourceAccessor
Throws:
IOException

getResources

public Enumeration<URL> getResources(String packageName)
                              throws IOException
Specified by:
getResources in interface ResourceAccessor
Throws:
IOException

toClassLoader

public ClassLoader toClassLoader()
Specified by:
toClassLoader in interface ResourceAccessor

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Liquibase.org. All Rights Reserved.