Beispiel #1
0
  public FWProps(Map initProps, FrameworkContext fwCtx) {
    // Add explicitly given properties.
    props.putAll(initProps);

    // Setup Debug as early as possible.
    fwCtx.debug = new Debug(this);

    // Setup default (launch) OSGi properties, see OSGi R4 v4.2 sec 4.2.2
    initProperties(fwCtx);

    // Setup default KF framework properties
    initKFProperties();

    // Set up some instance variables that depends on the properties
    SETCONTEXTCLASSLOADER = getBooleanProperty(SETCONTEXTCLASSLOADER_PROP);
    REGISTERSERVICEURLHANDLER = getBooleanProperty(REGISTERSERVICEURLHANDLER_PROP);
    STRICTBOOTCLASSLOADING = getBooleanProperty(STRICTBOOTCLASSLOADING_PROP);
    isDoubleCheckedLockingSafe = getBooleanProperty(IS_DOUBLECHECKED_LOCKING_SAFE_PROP);
  }