Examples of UnmodifiableProperties


Examples of com.googlecode.richrest.util.UnmodifiableProperties

  private Client(Properties config, Transferrer transferrer) {
    if (config == null)
      throw new NullPointerException("properties == null!");
    if (transferrer == null)
      throw new NullPointerException("transferrer == null!");
    config = new UnmodifiableProperties(config);
    this.transferrer = transferrer;
    transferrer.init(this, config);
    addPropertyInfo(TRANSFERRER_KEY, "传输策略",
        "暂未实现传输策略动态切换,修改后不会生效!", HttpURLConnectionTransferrer.class
            .getName(), ServiceUtils.getServiceClassNames(
View Full Code Here

Examples of com.googlecode.richrest.util.UnmodifiableProperties

  /**
   * 获取所有配置项
   * @return 不可变配置集合
   */
  public Properties getProperties() {
    return new UnmodifiableProperties(values);
  }
View Full Code Here

Examples of org.modeshape.common.collection.UnmodifiableProperties

        try {
            stream = ModelExtensionDefinitionHelper.class.getClassLoader().getResourceAsStream(fileName);
            final Properties props = new Properties();
            props.load(stream);
            return new UnmodifiableProperties(props);
        } catch (final IOException e) {
            throw new IllegalStateException(TeiidI18n.errorReadingMedMetaclassMappings.text(fileName, e.getLocalizedMessage()), e);
        } finally {
            if (stream != null) {
                try {
View Full Code Here

Examples of org.modeshape.common.collection.UnmodifiableProperties

        try {
            stream = JcrRepository.class.getClassLoader().getResourceAsStream("org/modeshape/jcr/repository.properties");
            assert stream != null;
            Properties props = new Properties();
            props.load(stream);
            return new UnmodifiableProperties(props);
        } catch (IOException e) {
            throw new IllegalStateException(JcrI18n.failedToReadPropertiesFromManifest.text(e.getLocalizedMessage()), e);
        } finally {
            if (stream != null) {
                try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.