Package org.openbp.common.setting

Examples of org.openbp.common.setting.SettingResolver


   * and an {@link PropertyFileProvider} that accesses the specified property file as read-only provider
   * using the name "core" and priority 90.
   */
  protected static void initializeSettingProvidersAndLogger()
  {
    SettingResolver resolver = SettingUtil.getStandardResolver();
    resolver.clearProvider(SYSTEM_PROVIDER);
    resolver.clearProvider(ROOTDIR_PROVIDER);

    // The Standard system property provider provides access to system properties
    SystemPropertyProvider systemPropertyProvider = SystemPropertyProvider.getInstance();
    resolver.addProvider(SYSTEM_PROVIDER, systemPropertyProvider, 50);

    // The rootdir provider provider will supply the root directory setting
    resolver.addProvider(ROOTDIR_PROVIDER, rootDirProvider, 70);
  }
View Full Code Here


    // The root configuration provider will only read options from the Core.properties
    PropertyFileProvider provider = new PropertyFileProvider();
    provider.setPropertyResourceName(resourceName);
    provider.setReadonly(! writeable);
    SettingResolver resolver = SettingUtil.getStandardResolver();
    resolver.addProvider(resourceName, provider, priority);
  }
View Full Code Here

TOP

Related Classes of org.openbp.common.setting.SettingResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.