public class EnvironmentDetection extends Object
| 构造器和说明 |
|---|
EnvironmentDetection(ClassLoader classLoader)
Creates a new FeatureDetector.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isJBossVFSv2()
Checks whether JBoss VFS v2 is available.
|
boolean |
isJBossVFSv3()
Checks whether JBoss VFS is available.
|
boolean |
isOsgi()
Checks if OSGi framework is available.
|
protected static boolean |
isPresent(String className,
ClassLoader classLoader)
Determine whether the
Class identified by the supplied name is present
and can be loaded. |
public EnvironmentDetection(ClassLoader classLoader)
classLoader - The ClassLoader to use.public boolean isJBossVFSv2()
true if it is, false if it is notpublic boolean isJBossVFSv3()
true if it is, false if it is notpublic boolean isOsgi()
true if it is, false if it is notprotected static boolean isPresent(String className, ClassLoader classLoader)
Class identified by the supplied name is present
and can be loaded. Will return false if either the class or
one of its dependencies is not present or cannot be loaded.className - the name of the class to checkclassLoader - The ClassLoader to use.Copyright © 2021. All rights reserved.