Class OsgiUtils


  • public class OsgiUtils
    extends java.lang.Object
    Utilities for dealing with OSGi environments.
    Since:
    1.21
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean inOsgiEnvironment  
    • Constructor Summary

      Constructors 
      Constructor Description
      OsgiUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean isBundleReference​(java.lang.Class<?> clazz)  
      static boolean isRunningInOsgiEnvironment()
      Tests if Commons Compress running as an OSGi bundle?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inOsgiEnvironment

        private static final boolean inOsgiEnvironment
    • Constructor Detail

      • OsgiUtils

        public OsgiUtils()
    • Method Detail

      • isBundleReference

        private static boolean isBundleReference​(java.lang.Class<?> clazz)
      • isRunningInOsgiEnvironment

        public static boolean isRunningInOsgiEnvironment()
        Tests if Commons Compress running as an OSGi bundle?
        Returns:
        true if Commons Compress running as an OSGi bundle.