Class EnvironmentDetection
- java.lang.Object
-
- io.avaje.classpath.scanner.internal.EnvironmentDetection
-
public class EnvironmentDetection extends Object
Detects whether certain features are available or not.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentDetection(ClassLoader classLoader)Creates a new FeatureDetector.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisAndroid()Return true if the runtime is Andriod.booleanisJBossVFSv2()Checks whether JBoss VFS v2 is available.booleanisJBossVFSv3()Checks whether JBoss VFS is available.booleanisOsgi()Checks if OSGi framework is available.
-
-
-
Constructor Detail
-
EnvironmentDetection
public EnvironmentDetection(ClassLoader classLoader)
Creates a new FeatureDetector.- Parameters:
classLoader- The ClassLoader to use.
-
-
Method Detail
-
isJBossVFSv2
public boolean isJBossVFSv2()
Checks whether JBoss VFS v2 is available.- Returns:
trueif it is,false if it is not
-
isJBossVFSv3
public boolean isJBossVFSv3()
Checks whether JBoss VFS is available.- Returns:
trueif it is,false if it is not
-
isOsgi
public boolean isOsgi()
Checks if OSGi framework is available.- Returns:
trueif it is,false if it is not
-
isAndroid
public static boolean isAndroid()
Return true if the runtime is Andriod.
-
-