com.googlecode.flyway.core.util.scanner
Class JarFileLocationScanner

java.lang.Object
  extended by com.googlecode.flyway.core.util.scanner.JarFileLocationScanner
All Implemented Interfaces:
LocationScanner

public class JarFileLocationScanner
extends java.lang.Object
implements LocationScanner

LocationScanner for jar files.


Constructor Summary
JarFileLocationScanner(java.lang.String protocol)
          Creates a new JarFileLocationScanner.
 
Method Summary
 java.util.Set<java.lang.String> findResourceNames(java.lang.String location, java.lang.String locationUrl)
          Finds the resource names below this location on the classpath under this locationUrl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarFileLocationScanner

public JarFileLocationScanner(java.lang.String protocol)
Creates a new JarFileLocationScanner.

Parameters:
protocol - The protocol used in the resource URL. Could be jar or zip when used from WebLogic.
Method Detail

findResourceNames

public java.util.Set<java.lang.String> findResourceNames(java.lang.String location,
                                                         java.lang.String locationUrl)
                                                  throws java.io.IOException
Description copied from interface: LocationScanner
Finds the resource names below this location on the classpath under this locationUrl.

Specified by:
findResourceNames in interface LocationScanner
Parameters:
location - The system-independent location on the classpath.
locationUrl - The system-specific physical location URL.
Returns:
The system-independent names of the resources on the classpath.
Throws:
java.io.IOException - when the scanning failed.


Copyright © 2012. All Rights Reserved.