public class ConnectionConfigImpl extends Object implements ConnectionConfig
ConnectionConfig.| Modifier and Type | Class and Description |
|---|---|
static interface |
ConnectionConfigImpl.Converter<T>
Callback to parse a property from string to its native type.
|
static class |
ConnectionConfigImpl.PropEnv
The combination of a property definition and a map of property values.
|
| Modifier and Type | Field and Description |
|---|---|
static ConnectionConfigImpl.Converter<Boolean> |
BOOLEAN_CONVERTER |
static ConnectionConfigImpl.Converter<String> |
IDENTITY_CONVERTER |
protected Properties |
properties |
| Constructor and Description |
|---|
ConnectionConfigImpl(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum> |
enumConverter(Class<E> enumClass) |
Service.Factory |
factory() |
static Map<ConnectionProperty,String> |
parse(Properties properties,
Map<String,? extends ConnectionProperty> nameToProps)
Converts a
Properties object containing (name, value)
pairs into a map whose keys are
InternalProperty objects. |
static <T> ConnectionConfigImpl.Converter<T> |
pluginConverter(Class<T> pluginClass,
T defaultInstance) |
String |
schema() |
String |
serialization() |
String |
timeZone() |
String |
url() |
protected final Properties properties
public static final ConnectionConfigImpl.Converter<Boolean> BOOLEAN_CONVERTER
public static final ConnectionConfigImpl.Converter<String> IDENTITY_CONVERTER
public ConnectionConfigImpl(Properties properties)
public String schema()
schema in interface ConnectionConfigBuiltInConnectionProperty.SCHEMApublic String timeZone()
timeZone in interface ConnectionConfigBuiltInConnectionProperty.TIME_ZONEpublic Service.Factory factory()
factory in interface ConnectionConfigBuiltInConnectionProperty.FACTORYpublic String url()
url in interface ConnectionConfigBuiltInConnectionProperty.URLpublic String serialization()
serialization in interface ConnectionConfigBuiltInConnectionProperty.SERIALIZATIONpublic static Map<ConnectionProperty,String> parse(Properties properties, Map<String,? extends ConnectionProperty> nameToProps)
Properties object containing (name, value)
pairs into a map whose keys are
InternalProperty objects.
Matching is case-insensitive. Throws if a property is not known. If a property occurs more than once, takes the last occurrence.
properties - PropertiesRuntimeException - if a property is not knownpublic static <E extends Enum> ConnectionConfigImpl.Converter<E> enumConverter(Class<E> enumClass)
public static <T> ConnectionConfigImpl.Converter<T> pluginConverter(Class<T> pluginClass, T defaultInstance)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.