org.unitils.dbmaintainer.locator
Class ClassPathDataLocator
java.lang.Object
org.unitils.dbmaintainer.locator.ClassPathResourceLocator
org.unitils.dbmaintainer.locator.ClassPathDataLocator
public class ClassPathDataLocator
- extends ClassPathResourceLocator
Refactor this class to work with a strategy class for choosing resources.
- Since:
- 1.0.2
- Author:
- tdr
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPathDataLocator
public ClassPathDataLocator()
getDataResource
public InputStream getDataResource(String resourceName,
ResourcePickingStrategie resourcePickingStrategie)
- The resources are loaded and than does the
ResourcePickingStrategie the first filtering.
Possibilities:
- There are still more than one resources: the first resource is returned
- There is only one resource: this resource is returned.
- There aren't any resources left: null will be returned.
- Parameters:
resourceName - resourcePickingStrategie -
- Returns:
InputStream
Copyright © 2014. All Rights Reserved.