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()
           
 
Method Summary
 boolean acceptUrlProtocol(java.lang.String protocol)
          Checks whether this location scanner can deal with this URL protocol.
 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()
Method Detail

acceptUrlProtocol

public boolean acceptUrlProtocol(java.lang.String protocol)
Description copied from interface: LocationScanner
Checks whether this location scanner can deal with this URL protocol.

Specified by:
acceptUrlProtocol in interface LocationScanner
Parameters:
protocol - The protocol to check.
Returns:
true if it can, false if it can't.

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.