|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ibatis.io.VFS org.apache.ibatis.io.JBoss6VFS
public class JBoss6VFS
A VFS
implementation that works with the VFS API provided by JBoss 6.
Field Summary |
---|
Fields inherited from class org.apache.ibatis.io.VFS |
---|
IMPLEMENTATIONS, USER_IMPLEMENTATIONS |
Constructor Summary | |
---|---|
JBoss6VFS()
|
Method Summary | ||
---|---|---|
protected static
|
checkNotNull(T object)
Verifies that the provided object reference is null. |
|
protected static void |
checkReturnType(Method method,
Class<?> expected)
Verifies that the return type of a method is what it is expected to be. |
|
protected static void |
initialize()
Find all the classes and methods that are required to access the JBoss 6 VFS. |
|
boolean |
isValid()
Return true if the VFS implementation is valid for the current environment. |
|
List<String> |
list(URL url,
String path)
Recursively list the full resource path of all the resources that are children of the resource identified by a URL. |
|
protected static void |
setInvalid()
Mark this VFS as invalid for the current environment. |
Methods inherited from class org.apache.ibatis.io.VFS |
---|
addImplClass, getClass, getInstance, getMethod, getResources, invoke, list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBoss6VFS()
Method Detail |
---|
protected static void initialize()
protected static <T> T checkNotNull(T object)
object
- The object reference to check for null.protected static void checkReturnType(Method method, Class<?> expected)
method
- The method whose return type is to be checked.expected
- A type to which the method's return type must be assignable.Class.isAssignableFrom(Class)
protected static void setInvalid()
VFS
as invalid for the current environment.
public boolean isValid()
VFS
VFS
implementation is valid for the current environment.
isValid
in class VFS
public List<String> list(URL url, String path) throws IOException
VFS
list
in class VFS
url
- The URL that identifies the resource to list.path
- The path to the resource that is identified by the URL. Generally, this is the
value passed to VFS.getResources(String)
to get the resource URL.
IOException
- If I/O errors occur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |