|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.skife.jdbi.tweak.ChainedScriptLocator
public class ChainedScriptLocator
Will take a group of script locators and try each, in order, until one finds the requested resource.
Constructor Summary | |
---|---|
ChainedScriptLocator(ScriptLocator[] locators)
|
Method Summary | |
---|---|
java.io.InputStream |
locate(java.lang.String name)
Tries each ScriptLocator passed to the constructor in order, returning from the first which actually finds the requested resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainedScriptLocator(ScriptLocator[] locators)
Method Detail |
---|
public java.io.InputStream locate(java.lang.String name) throws java.lang.Exception
locate
in interface ScriptLocator
name
- Resource name to look for. This will be the raw value requested by the client.
java.lang.Exception
- if anything goes wrong locating the statement, will be wrapped in
a DBIException and rethrown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |