Package org.jboss.modules
Class VersionDetection
- java.lang.Object
-
- org.jboss.modules.VersionDetection
-
public final class VersionDetection extends java.lang.Object
A utility class to assist with detecting the version of a resource root or collection of resource roots.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Version
detectVersion(ResourceLoader resourceLoader)
Attempt to guess the version of a resource loader.
-
-
-
Method Detail
-
detectVersion
public static Version detectVersion(ResourceLoader resourceLoader) throws java.io.IOException
Attempt to guess the version of a resource loader.- Parameters:
resourceLoader
- the resource loader to check (must not benull
)- Returns:
- the version, or
null
if no version could be determined - Throws:
java.io.IOException
- if necessary resource(s) failed to load
-
-