src/main/java/io/avaje/classpath/scanner/internal/EnvironmentDetection.java
public boolean isOsgi() {
    if (osgi == null) {
      osgi = isPresent("org.osgi.framework.Bundle", classLoader);
      ScanLog.log.trace("OSGi {}", osgi);
    }

    return osgi;
  }
/**
   * Checks if OSGi framework is available.
   *
   * @return {@code true} if it is, {@code false if it is not}
   */
Checks if OSGi framework is available.
@return  true if it is,  false if it is not
Checks if OSGi framework is available . @return true if it is false if it is not
public boolean isOsgi() {
    if (osgi == null) {
      osgi = isPresent("org.osgi.framework.Bundle", classLoader);
      ScanLog.log.trace("OSGi {}", osgi);
    }
    return osgi;
  }
public boolean isOsgi ( ) { if ( osgi == null ) { osgi = isPresent ( "org.osgi.framework.Bundle" , classLoader ) ; ScanLog . log . trace ( "OSGi {}" , osgi ) ; } return osgi ; }
Checks if OSGi framework is available.
Checks if OSGi framework is available .