Package org.springframework.core.io
Class VfsUtils
- java.lang.Object
- org.springframework.core.io.VfsUtils
public abstract class VfsUtils extends Object
Utility for detecting and accessing JBoss VFS in the classpath.As of Spring 4.0, this class supports VFS 3.x on JBoss AS 6+ (package
org.jboss.vfs) and is in particular compatible with JBoss AS 7 and WildFly 8+.Thanks go to Marius Bogoevici for the initial patch. Note: This is an internal class and should not be used outside the framework.
- Since:
- 3.0.3
- Author:
- Costin Leau, Juergen Hoeller
Field Summary
Fields Modifier and Type Field Description protected static MethodVIRTUAL_FILE_METHOD_VISITprotected static Class<?>VIRTUAL_FILE_VISITOR_INTERFACE
Constructor Summary
Constructors Constructor Description VfsUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringdoGetPath(Object resource)protected static ObjectdoGetVisitorAttribute()protected static ObjectgetRoot(URL url)protected static ObjectinvokeVfsMethod(Method method, Object target, Object... args)
Field Detail
VIRTUAL_FILE_VISITOR_INTERFACE
protected static final Class<?> VIRTUAL_FILE_VISITOR_INTERFACE
VIRTUAL_FILE_METHOD_VISIT
protected static final Method VIRTUAL_FILE_METHOD_VISIT
Constructor Detail
VfsUtils
public VfsUtils()
Method Detail
invokeVfsMethod
protected static Object invokeVfsMethod(Method method, Object target, Object... args) throws IOException
- Throws:
IOException
getRoot
protected static Object getRoot(URL url) throws IOException
- Throws:
IOException
doGetVisitorAttribute
protected static Object doGetVisitorAttribute()