liquibase.integration.commandline
Class CommandLineResourceAccessor

java.lang.Object
  extended by liquibase.integration.commandline.CommandLineResourceAccessor
All Implemented Interfaces:
ResourceAccessor

public class CommandLineResourceAccessor
extends Object
implements ResourceAccessor

Implementation of liquibase.FileOpener for the command line app.

See Also:
ResourceAccessor

Constructor Summary
CommandLineResourceAccessor(ClassLoader loader)
           
 
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

CommandLineResourceAccessor

public CommandLineResourceAccessor(ClassLoader loader)
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 © 2012 Liquibase.org. All Rights Reserved.