mirror of
https://github.com/lightbend/config.git
synced 2025-03-14 19:30:25 +08:00
package name change
This commit is contained in:
parent
a6f51ea8a7
commit
d9d83654c4
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
@ -34,7 +34,7 @@ import java.util.concurrent.TimeUnit;
|
||||
*
|
||||
* <p>
|
||||
* You can find an example app and library <a
|
||||
* href="https://github.com/typesafehub/config/tree/master/examples">on
|
||||
* href="https://github.com.twitter_typesafehub/config/tree/master/examples">on
|
||||
* GitHub</a>. Also be sure to read the <a
|
||||
* href="package-summary.html#package_description">package overview</a> which
|
||||
* describes the big picture as shown in those examples.
|
||||
@ -54,7 +54,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* in a JSON object; it's just a string that's the key in a map. A "path" is a
|
||||
* parseable expression with a syntax and it refers to a series of keys. Path
|
||||
* expressions are described in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">spec for
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">spec for
|
||||
* Human-Optimized Config Object Notation</a>. In brief, a path is
|
||||
* period-separated so "a.b.c" looks for key c in object b in object a in the
|
||||
* root object. Sometimes double quotes are needed around special characters in
|
||||
@ -108,7 +108,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* <p>
|
||||
* <em>Substitutions</em> are the <code>${foo.bar}</code> syntax in config
|
||||
* files, described in the <a href=
|
||||
* "https://github.com/typesafehub/config/blob/master/HOCON.md#substitutions"
|
||||
* "https://github.com.twitter_typesafehub/config/blob/master/HOCON.md#substitutions"
|
||||
* >specification</a>. Resolving substitutions replaces these references with real
|
||||
* values.
|
||||
*
|
||||
@ -187,7 +187,7 @@ public interface Config extends ConfigMergeable {
|
||||
/**
|
||||
* Returns a replacement config with all substitutions (the
|
||||
* <code>${foo.bar}</code> syntax, see <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">the
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">the
|
||||
* spec</a>) resolved. Substitutions are looked up using this
|
||||
* <code>Config</code> as the root object, that is, a substitution
|
||||
* <code>${foo.bar}</code> will be replaced with the result of
|
||||
@ -652,7 +652,7 @@ public interface Config extends ConfigMergeable {
|
||||
* the value is already a number, then it's left alone; if it's a string,
|
||||
* it's parsed understanding unit suffixes such as "128K", as documented in
|
||||
* the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">the
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">the
|
||||
* spec</a>.
|
||||
*
|
||||
* @param path
|
||||
@ -672,7 +672,7 @@ public interface Config extends ConfigMergeable {
|
||||
* the value is already a number, then it's left alone; if it's a string,
|
||||
* it's parsed understanding unit suffixes such as "128K", as documented in
|
||||
* the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">the
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">the
|
||||
* spec</a>.
|
||||
*
|
||||
* @since 1.3.0
|
||||
@ -693,7 +693,7 @@ public interface Config extends ConfigMergeable {
|
||||
* Get value as a duration in milliseconds. If the value is already a
|
||||
* number, then it's left alone; if it's a string, it's parsed understanding
|
||||
* units suffixes like "10m" or "5ns" as documented in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">the
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">the
|
||||
* spec</a>.
|
||||
*
|
||||
* @deprecated As of release 1.1, replaced by {@link #getDuration(String, TimeUnit)}
|
||||
@ -736,7 +736,7 @@ public interface Config extends ConfigMergeable {
|
||||
* number, then it's taken as milliseconds and then converted to the
|
||||
* requested TimeUnit; if it's a string, it's parsed understanding units
|
||||
* suffixes like "10m" or "5ns" as documented in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">the
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">the
|
||||
* spec</a>.
|
||||
*
|
||||
* @since 1.2.0
|
||||
@ -760,7 +760,7 @@ public interface Config extends ConfigMergeable {
|
||||
* already a number, then it's taken as milliseconds; if it's
|
||||
* a string, it's parsed understanding units suffixes like
|
||||
* "10m" or "5ns" as documented in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">the
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">the
|
||||
* spec</a>. This method never returns null.
|
||||
*
|
||||
* @since 1.3.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import com.typesafe.config.impl.ConfigBeanImpl;
|
||||
import com.twitter_typesafe.config.impl.ConfigBeanImpl;
|
||||
|
||||
/**
|
||||
* Factory for automatically creating a Java class from a {@link Config}.
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import com.typesafe.config.impl.ConfigImplUtil;
|
||||
import com.twitter_typesafe.config.impl.ConfigImplUtil;
|
||||
|
||||
/**
|
||||
* All exceptions thrown by the library are subclasses of
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Reader;
|
||||
@ -11,8 +11,8 @@ import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import com.typesafe.config.impl.ConfigImpl;
|
||||
import com.typesafe.config.impl.Parseable;
|
||||
import com.twitter_typesafe.config.impl.ConfigImpl;
|
||||
import com.twitter_typesafe.config.impl.Parseable;
|
||||
|
||||
/**
|
||||
* Contains static methods for creating {@link Config} instances.
|
||||
@ -29,7 +29,7 @@ import com.typesafe.config.impl.Parseable;
|
||||
* from a resource and nothing else.
|
||||
*
|
||||
* <p> You can find an example app and library <a
|
||||
* href="https://github.com/typesafehub/config/tree/master/examples">on
|
||||
* href="https://github.com.twitter_typesafehub/config/tree/master/examples">on
|
||||
* GitHub</a>. Also be sure to read the <a
|
||||
* href="package-summary.html#package_description">package
|
||||
* overview</a> which describes the big picture as shown in those
|
||||
@ -615,7 +615,7 @@ public final class ConfigFactory {
|
||||
/**
|
||||
* Converts a Java {@link java.util.Properties} object to a
|
||||
* {@link ConfigObject} using the rules documented in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOCON
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">HOCON
|
||||
* spec</a>. The keys in the <code>Properties</code> object are split on the
|
||||
* period character '.' and treated as paths. The values will all end up as
|
||||
* string values. If you have both "a=foo" and "a.b=bar" in your properties
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* Implement this interface and provide an instance to
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* Implement this <em>in addition to</em> {@link ConfigIncluder} if you want to
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* An immutable class representing an amount of memory. Use
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* Marker for types whose instances can be merged, that is {@link Config} and
|
||||
@ -27,7 +27,7 @@ public interface ConfigMergeable {
|
||||
*
|
||||
* <p>
|
||||
* The semantics of merging are described in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">spec
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">spec
|
||||
* for HOCON</a>. Merging typically occurs when either the same object is
|
||||
* created twice in the same file, or two config files are both loaded. For
|
||||
* example:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.List;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
import com.typesafe.config.impl.ConfigImpl;
|
||||
import com.twitter_typesafe.config.impl.ConfigImpl;
|
||||
|
||||
/**
|
||||
* This class contains some static factory methods for building a {@link
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
@ -1,12 +1,12 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* A set of options related to resolving substitutions. Substitutions use the
|
||||
* <code>${foo.bar}</code> syntax and are documented in the <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOCON</a>
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">HOCON</a>
|
||||
* spec.
|
||||
* <p>
|
||||
* Typically this class would be used with the method
|
||||
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* The syntax of a character stream (<a href="http://json.org">JSON</a>, <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOCON</a>
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md">HOCON</a>
|
||||
* aka ".conf", or <a href=
|
||||
* "http://download.oracle.com/javase/7/docs/api/java/util/Properties.html#load%28java.io.Reader%29"
|
||||
* >Java properties</a>).
|
||||
@ -21,7 +21,7 @@ public enum ConfigSyntax {
|
||||
JSON,
|
||||
/**
|
||||
* The JSON-superset <a
|
||||
* href="https://github.com/typesafehub/config/blob/master/HOCON.md"
|
||||
* href="https://github.com.twitter_typesafehub/config/blob/master/HOCON.md"
|
||||
* >HOCON</a> format. Associated with the <code>.conf</code> file extension
|
||||
* and <code>application/hocon</code> Content-Type.
|
||||
*/
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.typesafe.config.impl.ConfigImplUtil;
|
||||
import com.twitter_typesafe.config.impl.ConfigImplUtil;
|
||||
|
||||
/**
|
||||
* Contains static utility methods.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* An immutable value, following the <a href="http://json.org">JSON</a> type
|
||||
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.impl.ConfigImpl;
|
||||
import com.twitter_typesafe.config.impl.ConfigImpl;
|
||||
|
||||
/**
|
||||
* This class holds some static factory methods for building {@link ConfigValue}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config;
|
||||
package com.twitter_typesafe.config;
|
||||
|
||||
/**
|
||||
* The type of a configuration value (following the <a
|
||||
|
@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.parser.ConfigNode;
|
||||
import com.twitter_typesafe.config.parser.ConfigNode;
|
||||
import java.util.Collection;
|
||||
|
||||
abstract class AbstractConfigNode implements ConfigNode {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
// This is required if we want
|
||||
// to be referencing the AbstractConfigNode class in implementation rather than the
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -9,13 +9,13 @@ import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigMergeable;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigMergeable;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
abstract class AbstractConfigObject extends AbstractConfigValue implements ConfigObject, Container {
|
||||
final private SimpleConfig config;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
@ -9,12 +9,12 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigMergeable;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigMergeable;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.beans.BeanInfo;
|
||||
import java.beans.IntrospectionException;
|
||||
@ -14,17 +14,17 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.time.Duration;
|
||||
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigList;
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigMemorySize;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.Config;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigList;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigMemorySize;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* Internal implementation detail, not ABI stable, do not touch.
|
||||
* For use only by the {@link com.typesafe.config} package.
|
||||
* For use only by the {@link com.twitter_typesafe.config} package.
|
||||
*/
|
||||
public class ConfigBeanImpl {
|
||||
|
||||
@ -252,4 +252,4 @@ public class ConfigBeanImpl {
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
final class ConfigBoolean extends AbstractConfigValue implements Serializable {
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* A ConfigConcatenation represents a list of values to be concatenated (see the
|
||||
|
@ -1,10 +1,10 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class ConfigConditional {
|
||||
final class ConfigConditional {
|
||||
|
||||
private SubstitutionExpression left;
|
||||
private AbstractConfigValue right;
|
||||
|
@ -1,17 +1,17 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* The issue here is that we want to first merge our stack of config files, and
|
||||
@ -339,4 +339,4 @@ final class ConfigDelayedMerge extends AbstractConfigValue implements Unmergeabl
|
||||
sb.append("# ) end of unresolved merge\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
@ -9,12 +9,12 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigList;
|
||||
import com.typesafe.config.ConfigMergeable;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigList;
|
||||
import com.twitter_typesafe.config.ConfigMergeable;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
// This is just like ConfigDelayedMerge except we know statically
|
||||
// that it will turn out to be an object.
|
||||
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.typesafe.config.*;
|
||||
import com.twitter_typesafe.config.*;
|
||||
|
||||
final class ConfigDocumentParser {
|
||||
static ConfigNodeRoot parse(Iterator<Token> tokens, ConfigOrigin origin, ConfigParseOptions options) {
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
final class ConfigDouble extends ConfigNumber implements Serializable {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.ref.WeakReference;
|
||||
@ -16,20 +16,20 @@ import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigIncluder;
|
||||
import com.typesafe.config.ConfigMemorySize;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigParseOptions;
|
||||
import com.typesafe.config.ConfigParseable;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.typesafe.config.impl.SimpleIncluder.NameSource;
|
||||
import com.twitter_typesafe.config.Config;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigIncluder;
|
||||
import com.twitter_typesafe.config.ConfigMemorySize;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigParseOptions;
|
||||
import com.twitter_typesafe.config.ConfigParseable;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.impl.SimpleIncluder.NameSource;
|
||||
|
||||
/**
|
||||
* Internal implementation detail, not ABI stable, do not touch.
|
||||
* For use only by the {@link com.typesafe.config} package.
|
||||
* For use only by the {@link com.twitter_typesafe.config} package.
|
||||
*/
|
||||
public class ConfigImpl {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.File;
|
||||
@ -13,12 +13,12 @@ import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
|
||||
/**
|
||||
* Internal implementation detail, not ABI stable, do not touch.
|
||||
* For use only by the {@link com.typesafe.config} package.
|
||||
* For use only by the {@link com.twitter_typesafe.config} package.
|
||||
*/
|
||||
final public class ConfigImplUtil {
|
||||
static boolean equalsHandlingNull(Object a, Object b) {
|
||||
@ -233,4 +233,4 @@ final public class ConfigImplUtil {
|
||||
}
|
||||
return nameBuilder.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
enum ConfigIncludeKind {
|
||||
URL, FILE, CLASSPATH, HEURISTIC
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
final class ConfigInt extends ConfigNumber implements Serializable {
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
final class ConfigLong extends ConfigNumber implements Serializable {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
final class ConfigNodeComment extends ConfigNodeSingleToken {
|
||||
ConfigNodeComment(Token comment) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigSyntax;
|
||||
import com.twitter_typesafe.config.ConfigSyntax;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
@ -278,4 +278,4 @@ final class ConfigNodeObject extends ConfigNodeComplexValue {
|
||||
Path path = PathParser.parsePathNode(desiredPath, flavor).value();
|
||||
return changeValueOnPath(path, null, flavor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigSyntax;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigSyntax;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@ -18,4 +18,4 @@ class ConfigNodeSingleToken extends AbstractConfigNode {
|
||||
}
|
||||
|
||||
protected Token token() { return token; }
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,14 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* This exists because sometimes null is not the same as missing. Specifically,
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
|
||||
abstract class ConfigNumber extends AbstractConfigValue implements Serializable {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.MalformedURLException;
|
||||
@ -14,7 +14,7 @@ import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.*;
|
||||
import com.twitter_typesafe.config.*;
|
||||
|
||||
final class ConfigParser {
|
||||
static AbstractConfigValue parse(ConfigNodeRoot document,
|
||||
|
@ -1,12 +1,12 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* ConfigReference replaces ConfigReference (the older class kept for back
|
||||
|
@ -1,14 +1,14 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
abstract class ConfigString extends AbstractConfigValue implements Serializable {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2014 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
/**
|
||||
* An AbstractConfigValue which contains other values. Java has no way to
|
||||
@ -9,7 +9,7 @@ package com.typesafe.config.impl;
|
||||
* AbstractConfigValue an interface which would be aggravating. But we can say
|
||||
* we are a ConfigValue.
|
||||
*/
|
||||
interface Container extends com.typesafe.config.ConfigValue {
|
||||
interface Container extends com.twitter_typesafe.config.ConfigValue {
|
||||
/**
|
||||
* Replace a child of this value. CAUTION if replacement is null, delete the
|
||||
* child, which may also delete the parent, or make the parent into a
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
@ -9,7 +9,7 @@ import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* Default automatic type transformations.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
enum FromMapMode {
|
||||
KEYS_ARE_PATHS, KEYS_ARE_KEYS
|
||||
|
@ -1,12 +1,12 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigIncluder;
|
||||
import com.typesafe.config.ConfigIncluderClasspath;
|
||||
import com.typesafe.config.ConfigIncluderFile;
|
||||
import com.typesafe.config.ConfigIncluderURL;
|
||||
import com.twitter_typesafe.config.ConfigIncluder;
|
||||
import com.twitter_typesafe.config.ConfigIncluderClasspath;
|
||||
import com.twitter_typesafe.config.ConfigIncluderFile;
|
||||
import com.twitter_typesafe.config.ConfigIncluderURL;
|
||||
|
||||
interface FullIncluder extends ConfigIncluder, ConfigIncluderFile, ConfigIncluderURL,
|
||||
ConfigIncluderClasspath {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
/** The key used to memoize already-traversed nodes when resolving substitutions */
|
||||
final class MemoKey {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigMergeable;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigMergeable;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
interface MergeableValue extends ConfigMergeable {
|
||||
// converts a Config to its root object and a ConfigValue to itself
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
// caution: ordinals used in serialization
|
||||
enum OriginType {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
@ -21,12 +21,12 @@ import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.util.*;
|
||||
|
||||
import com.typesafe.config.*;
|
||||
import com.typesafe.config.parser.*;
|
||||
import com.twitter_typesafe.config.*;
|
||||
import com.twitter_typesafe.config.parser.*;
|
||||
|
||||
/**
|
||||
* Internal implementation detail, not ABI stable, do not touch.
|
||||
* For use only by the {@link com.typesafe.config} package.
|
||||
* For use only by the {@link com.twitter_typesafe.config} package.
|
||||
* The point of this class is to avoid "propagating" each
|
||||
* overload on "thing which can be parsed" through multiple
|
||||
* interfaces. Most interfaces can have just one overload that
|
||||
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
final class Path {
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Stack;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
final class PathBuilder {
|
||||
// the keys are kept "backward" (top of stack is end of path)
|
||||
|
@ -1,12 +1,12 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigSyntax;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigSyntax;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
import java.io.StringReader;
|
||||
import java.util.*;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
@ -15,8 +15,8 @@ import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
|
||||
final class PropertiesParser {
|
||||
static AbstractConfigObject parse(Reader reader,
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
/**
|
||||
* Implemented by a merge stack (ConfigDelayedMerge, ConfigDelayedMergeObject)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.IdentityHashMap;
|
||||
@ -6,9 +6,9 @@ import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Set;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigResolveOptions;
|
||||
import com.typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigResolveOptions;
|
||||
import com.twitter_typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
|
||||
|
||||
final class ResolveContext {
|
||||
final private ResolveMemos memos;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
|
||||
// value is allowed to be null
|
||||
final class ResolveResult<V extends AbstractConfigValue> {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
|
||||
|
||||
/**
|
||||
* This class is the source for values for a substitution like ${foo}.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataInput;
|
||||
@ -20,13 +20,13 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigList;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.Config;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigList;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* Deliberately shoving all the serialization code into this class instead of
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
@ -17,16 +17,16 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigList;
|
||||
import com.typesafe.config.ConfigMemorySize;
|
||||
import com.typesafe.config.ConfigMergeable;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigResolveOptions;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.Config;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigList;
|
||||
import com.twitter_typesafe.config.ConfigMemorySize;
|
||||
import com.twitter_typesafe.config.ConfigMergeable;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigResolveOptions;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/**
|
||||
* One thing to keep in mind in the future: as Collection-like APIs are added
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.*;
|
||||
import com.typesafe.config.parser.ConfigDocument;
|
||||
import com.twitter_typesafe.config.*;
|
||||
import com.twitter_typesafe.config.parser.ConfigDocument;
|
||||
|
||||
import java.io.StringReader;
|
||||
import java.util.Iterator;
|
||||
@ -60,4 +60,4 @@ final class SimpleConfigDocument implements ConfigDocument {
|
||||
public int hashCode() {
|
||||
return render().hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
@ -11,12 +11,12 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigList;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigList;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
final class SimpleConfigList extends AbstractConfigValue implements ConfigList, Container, Serializable {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
import java.io.Serializable;
|
||||
@ -16,11 +16,11 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigRenderOptions;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigRenderOptions;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
final class SimpleConfigObject extends AbstractConfigObject implements Serializable {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@ -15,9 +15,9 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.impl.SerializedConfigValue.SerializedField;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.impl.SerializedConfigValue.SerializedField;
|
||||
|
||||
// it would be cleaner to have a class hierarchy for various origin types,
|
||||
// but was hoping this would be enough simpler to be a little messy. eh.
|
||||
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigIncludeContext;
|
||||
import com.typesafe.config.ConfigParseOptions;
|
||||
import com.typesafe.config.ConfigParseable;
|
||||
import com.twitter_typesafe.config.ConfigIncludeContext;
|
||||
import com.twitter_typesafe.config.ConfigParseOptions;
|
||||
import com.twitter_typesafe.config.ConfigParseable;
|
||||
|
||||
class SimpleIncludeContext implements ConfigIncludeContext {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.MalformedURLException;
|
||||
@ -9,17 +9,17 @@ import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigFactory;
|
||||
import com.typesafe.config.ConfigIncludeContext;
|
||||
import com.typesafe.config.ConfigIncluder;
|
||||
import com.typesafe.config.ConfigIncluderClasspath;
|
||||
import com.typesafe.config.ConfigIncluderFile;
|
||||
import com.typesafe.config.ConfigIncluderURL;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigParseOptions;
|
||||
import com.typesafe.config.ConfigParseable;
|
||||
import com.typesafe.config.ConfigSyntax;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigFactory;
|
||||
import com.twitter_typesafe.config.ConfigIncludeContext;
|
||||
import com.twitter_typesafe.config.ConfigIncluder;
|
||||
import com.twitter_typesafe.config.ConfigIncluderClasspath;
|
||||
import com.twitter_typesafe.config.ConfigIncluderFile;
|
||||
import com.twitter_typesafe.config.ConfigIncluderURL;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigParseOptions;
|
||||
import com.twitter_typesafe.config.ConfigParseable;
|
||||
import com.twitter_typesafe.config.ConfigSyntax;
|
||||
|
||||
class SimpleIncluder implements FullIncluder {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
final class SubstitutionExpression {
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
|
||||
class Token {
|
||||
final private TokenType tokenType;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
enum TokenType {
|
||||
START,
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
@ -11,9 +11,9 @@ import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigSyntax;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigSyntax;
|
||||
|
||||
final class Tokenizer {
|
||||
// this exception should not leave this file
|
||||
|
@ -1,13 +1,13 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigOrigin;
|
||||
import com.typesafe.config.ConfigValueType;
|
||||
import com.twitter_typesafe.config.ConfigException;
|
||||
import com.twitter_typesafe.config.ConfigOrigin;
|
||||
import com.twitter_typesafe.config.ConfigValueType;
|
||||
|
||||
/* FIXME the way the subclasses of Token are private with static isFoo and accessors is kind of ridiculous. */
|
||||
final class Tokens {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.impl;
|
||||
package com.twitter_typesafe.config.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.typesafe.config.parser;
|
||||
package com.twitter_typesafe.config.parser;
|
||||
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
/**
|
||||
* Represents an individual HOCON or JSON file, preserving all
|
||||
|
@ -1,15 +1,15 @@
|
||||
package com.typesafe.config.parser;
|
||||
package com.twitter_typesafe.config.parser;
|
||||
|
||||
import com.typesafe.config.ConfigParseOptions;
|
||||
import com.twitter_typesafe.config.ConfigParseOptions;
|
||||
|
||||
import com.typesafe.config.impl.Parseable;
|
||||
import com.twitter_typesafe.config.impl.Parseable;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Reader;
|
||||
|
||||
/**
|
||||
* Factory for creating {@link
|
||||
* com.typesafe.config.parser.ConfigDocument} instances.
|
||||
* com.twitter_typesafe.config.parser.ConfigDocument} instances.
|
||||
*/
|
||||
public final class ConfigDocumentFactory {
|
||||
|
||||
@ -21,7 +21,7 @@ public final class ConfigDocumentFactory {
|
||||
* @param options
|
||||
* parse options to control how the reader is interpreted
|
||||
* @return the parsed configuration
|
||||
* @throws com.typesafe.config.ConfigException on IO or parse errors
|
||||
* @throws com.twitter_typesafe.config.ConfigException on IO or parse errors
|
||||
*/
|
||||
public static ConfigDocument parseReader(Reader reader, ConfigParseOptions options) {
|
||||
return Parseable.newReader(reader, options).parseConfigDocument();
|
||||
@ -35,7 +35,7 @@ public final class ConfigDocumentFactory {
|
||||
* @param reader
|
||||
* the reader to parse
|
||||
* @return the parsed configuration
|
||||
* @throws com.typesafe.config.ConfigException on IO or parse errors
|
||||
* @throws com.twitter_typesafe.config.ConfigException on IO or parse errors
|
||||
*/
|
||||
public static ConfigDocument parseReader(Reader reader) {
|
||||
return parseReader(reader, ConfigParseOptions.defaults());
|
||||
@ -49,7 +49,7 @@ public final class ConfigDocumentFactory {
|
||||
* @param options
|
||||
* parse options to control how the file is interpreted
|
||||
* @return the parsed configuration
|
||||
* @throws com.typesafe.config.ConfigException on IO or parse errors
|
||||
* @throws com.twitter_typesafe.config.ConfigException on IO or parse errors
|
||||
*/
|
||||
public static ConfigDocument parseFile(File file, ConfigParseOptions options) {
|
||||
return Parseable.newFile(file, options).parseConfigDocument();
|
||||
@ -63,7 +63,7 @@ public final class ConfigDocumentFactory {
|
||||
* @param file
|
||||
* the file to parse
|
||||
* @return the parsed configuration
|
||||
* @throws com.typesafe.config.ConfigException on IO or parse errors
|
||||
* @throws com.twitter_typesafe.config.ConfigException on IO or parse errors
|
||||
*/
|
||||
public static ConfigDocument parseFile(File file) {
|
||||
return parseFile(file, ConfigParseOptions.defaults());
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://typesafe.com>
|
||||
*/
|
||||
package com.typesafe.config.parser;
|
||||
package com.twitter_typesafe.config.parser;
|
||||
|
||||
/**
|
||||
* A node in the syntax tree for a HOCON or JSON document.
|
||||
@ -10,8 +10,8 @@ package com.typesafe.config.parser;
|
||||
* Note: at present there is no way to obtain an instance of this interface, so
|
||||
* please ignore it. A future release will make syntax tree nodes available in
|
||||
* the public API. If you are interested in working on it, please see: <a
|
||||
* href="https://github.com/typesafehub/config/issues/300"
|
||||
* >https://github.com/typesafehub/config/issues/300</a>
|
||||
* href="https://github.com.twitter_typesafehub/config/issues/300"
|
||||
* >https://github.com.twitter_typesafehub/config/issues/300</a>
|
||||
*
|
||||
* <p>
|
||||
* Because this object is immutable, it is safe to use from multiple threads and
|
||||
|
@ -3,10 +3,10 @@ package beanconfig;
|
||||
import java.util.List;
|
||||
import java.time.Duration;
|
||||
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigMemorySize;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.Config;
|
||||
import com.twitter_typesafe.config.ConfigMemorySize;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
public class ArraysConfig {
|
||||
|
||||
@ -136,4 +136,4 @@ public class ArraysConfig {
|
||||
public void setOfStringBean(List<StringsConfig> ofStringBean) {
|
||||
this.ofStringBean = ofStringBean;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
package beanconfig;
|
||||
|
||||
import com.typesafe.config.ConfigMemorySize;
|
||||
import com.twitter_typesafe.config.ConfigMemorySize;
|
||||
|
||||
public class BytesConfig {
|
||||
|
||||
|
@ -42,4 +42,4 @@ public class StringsConfig {
|
||||
public String toString() {
|
||||
return "StringsConfig(" + abcd + "," + yes + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ public class UnsupportedListElementConfig {
|
||||
public void setUri(List<URI> uri) {
|
||||
this.uri = uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ public class UnsupportedMapKeyConfig {
|
||||
this.map = map;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ public class UnsupportedMapValueConfig {
|
||||
this.map = map;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -2,10 +2,10 @@ package beanconfig;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigList;
|
||||
import com.typesafe.config.ConfigObject;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
import com.twitter_typesafe.config.Config;
|
||||
import com.twitter_typesafe.config.ConfigList;
|
||||
import com.twitter_typesafe.config.ConfigObject;
|
||||
import com.twitter_typesafe.config.ConfigValue;
|
||||
|
||||
// test bean for various "uncooked" values
|
||||
public class ValuesConfig {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user