|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.skife.jdbi.tweak.ClasspathScriptLocator
public class ClasspathScriptLocator
Looks for a script on the classpath. Will first try the exact name passed, will then try appending ".sql" if the name doesn't already end in .sql.
The suffix mechanism will probably be removed in an upcoming major release, it is included here for backwards compatibility with earlier script locating mechanisms.
Constructor Summary | |
---|---|
ClasspathScriptLocator()
|
Method Summary | |
---|---|
java.io.InputStream |
locate(java.lang.String name)
Looks for a script on the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClasspathScriptLocator()
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 |