Package org.apache.ibatis.io
Class JBoss6VFS
- java.lang.Object
- 
- org.apache.ibatis.io.VFS
- 
- org.apache.ibatis.io.JBoss6VFS
 
 
- 
 public class JBoss6VFS extends VFS AJBoss6VFS.VFSimplementation that works with the VFS API provided by JBoss 6.- Author:
- Ben Gunter
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.ibatis.io.VFSIMPLEMENTATIONS, USER_IMPLEMENTATIONS
 
- 
 - 
Constructor SummaryConstructors Constructor Description JBoss6VFS()
 - 
Method SummaryModifier and Type Method Description protected static <T> TcheckNotNull(T object)Verifies that the provided object reference is null.protected static voidcheckReturnType(java.lang.reflect.Method method, java.lang.Class<?> expected)Verifies that the return type of a method is what it is expected to be.protected static voidinitialize()Find all the classes and methods that are required to access the JBoss 6 VFS.booleanisValid()Return true if theVFSimplementation is valid for the current environment.java.util.List<java.lang.String>list(java.net.URL url, java.lang.String path)Recursively list the full resource path of all the resources that are children of the resource identified by a URL.protected static voidsetInvalid()Mark thisJBoss6VFS.VFSas invalid for the current environment.- 
Methods inherited from class org.apache.ibatis.io.VFSaddImplClass, getClass, getInstance, getMethod, getResources, invoke, list
 
- 
 
- 
- 
- 
Method Detail- 
initializeprotected static void initialize() Find all the classes and methods that are required to access the JBoss 6 VFS.
 - 
checkNotNullprotected static <T> T checkNotNull(T object) Verifies that the provided object reference is null. If it is null, then this VFS is marked as invalid for the current environment.- Parameters:
- object- The object reference to check for null.
 
 - 
checkReturnTypeprotected static void checkReturnType(java.lang.reflect.Method method, java.lang.Class<?> expected)Verifies that the return type of a method is what it is expected to be. If it is not, then this VFS is marked as invalid for the current environment.- Parameters:
- method- The method whose return type is to be checked.
- expected- A type to which the method's return type must be assignable.
- See Also:
- Class.isAssignableFrom(Class)
 
 - 
setInvalidprotected static void setInvalid() Mark thisJBoss6VFS.VFSas invalid for the current environment.
 - 
isValidpublic boolean isValid() Description copied from class:VFSReturn true if theVFSimplementation is valid for the current environment.
 - 
listpublic java.util.List<java.lang.String> list(java.net.URL url, java.lang.String path) throws java.io.IOExceptionDescription copied from class:VFSRecursively list the full resource path of all the resources that are children of the resource identified by a URL.- Specified by:
- listin class- VFS
- Parameters:
- 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.
- Returns:
- A list containing the names of the child resources.
- Throws:
- java.io.IOException- If I/O errors occur
 
 
- 
 
-