com.googlecode.flyway.core.util.scanner
Interface LocationScanner

All Known Implementing Classes:
FileSystemLocationScanner, JarFileLocationScanner

public interface LocationScanner

Scans for classpath resources in this location.


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.
 

Method Detail

acceptUrlProtocol

boolean acceptUrlProtocol(java.lang.String protocol)
Checks whether this location scanner can deal with this URL protocol.

Parameters:
protocol - The protocol to check.
Returns:
true if it can, false if it can't.

findResourceNames

java.util.Set<java.lang.String> findResourceNames(java.lang.String location,
                                                  java.lang.String locationUrl)
                                                  throws java.io.IOException
Finds the resource names below this location on the classpath under this locationUrl.

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.