Top Description Constructors Methods
org.jboss.modules

public final Class VersionDetection

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.jar.Attributes, .Manifest

A utility class to assist with detecting the version of a resource root or collection of resource roots.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Version

Returns:

the version, or null if no version could be determined
detectVersion
(ResourceLoader
the resource loader to check (must not be null)
resourceLoader
)

Attempt to guess the version of a resource loader.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VersionDetectionback to summary
private VersionDetection()

Method Detail

detectVersionback to summary
public static Version detectVersion(ResourceLoader resourceLoader) throws IOException

Attempt to guess the version of a resource loader.

Parameters
resourceLoader:ResourceLoader

the resource loader to check (must not be null)

Returns:Version

the version, or null if no version could be determined

Exceptions
IOException:
if necessary resource(s) failed to load