Package org.jboss.modules
Class VersionDetection
java.lang.Object
org.jboss.modules.VersionDetection
A utility class to assist with detecting the version of a resource root or collection of resource roots.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Version
detectVersion
(ResourceLoader resourceLoader) Attempt to guess the version of a resource loader.
-
Method Details
-
detectVersion
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:
IOException
- if necessary resource(s) failed to load
-