public abstract class

VfsUtils

extends Object
java.lang.Object
   ↳ org.springframework.core.io.VfsUtils

Class Overview

Utility for detecting the JBoss VFS version available in the classpath. JBoss AS 5+ uses VFS 2.x (package org.jboss.virtual) while JBoss AS 6+ uses VFS 3.x (package org.jboss.vfs).

Thanks go to Marius Bogoevici for the initial patch. Note: This is an internal class and should not be used outside the framework.

Summary

Fields
protected static Method VIRTUAL_FILE_METHOD_VISIT
protected static Class<?> VIRTUAL_FILE_VISITOR_INTERFACE
Public Constructors
VfsUtils()
Protected Methods
static String doGetPath(Object resource)
static Object doGetVisitorAttribute()
static Object getRoot(URL url)
static Object invokeVfsMethod(Method method, Object target, Object... args)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static Method VIRTUAL_FILE_METHOD_VISIT

Also: SpringCore

protected static Class<?> VIRTUAL_FILE_VISITOR_INTERFACE

Also: SpringCore

Public Constructors

public VfsUtils ()

Also: SpringCore

Protected Methods

protected static String doGetPath (Object resource)

Also: SpringCore

protected static Object doGetVisitorAttribute ()

Also: SpringCore

protected static Object getRoot (URL url)

Also: SpringCore

Throws
IOException

protected static Object invokeVfsMethod (Method method, Object target, Object... args)

Also: SpringCore

Throws
IOException