public final class SafeOsgi
extends java.lang.Object
This class provides an OSGi class-decoupled way of checking whether OSGi service loading should be used. It is safe to load and call methods on this class when OSGi classes are not present.
Modifier and Type | Method and Description |
---|---|
static boolean |
useOSGiServiceLoading()
Returns
true if OSGi based service loading should be used. |
public static boolean useOSGiServiceLoading()
true
if OSGi based service loading should be used.
A true
return indicates that Ehcache is running in an OSGi environment and that the user has enabled OSGi
based service loading.
true
if OSGi service loading is enabled.