public static class ConnectionConfigImpl.PropEnv extends Object
| Constructor and Description |
|---|
ConnectionConfigImpl.PropEnv(Map<? extends ConnectionProperty,String> map,
ConnectionProperty property) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean()
Returns the boolean value of this property.
|
boolean |
getBoolean(boolean defaultValue)
Returns the boolean value of this property.
|
<E extends Enum<E>> |
getEnum(Class<E> enumClass)
Returns the enum value of this property.
|
<E extends Enum<E>> |
getEnum(Class<E> enumClass,
E defaultValue)
Returns the enum value of this property.
|
<T> T |
getPlugin(Class<T> pluginClass,
String defaultClassName,
T defaultInstance)
Returns an instance of a plugin, using a given class name if none is
set.
|
<T> T |
getPlugin(Class<T> pluginClass,
T defaultInstance)
Returns an instance of a plugin.
|
String |
getString()
Returns the string value of this property, or null if not specified and
no default.
|
String |
getString(String defaultValue)
Returns the string value of this property, or null if not specified and
no default.
|
public ConnectionConfigImpl.PropEnv(Map<? extends ConnectionProperty,String> map, ConnectionProperty property)
public String getString()
public String getString(String defaultValue)
public boolean getBoolean()
public boolean getBoolean(boolean defaultValue)
public <E extends Enum<E>> E getEnum(Class<E> enumClass)
public <E extends Enum<E>> E getEnum(Class<E> enumClass, E defaultValue)
public <T> T getPlugin(Class<T> pluginClass, T defaultInstance)
Throws if not set and no default.
Also throws if the class does not implement the required interface,
or if it does not have a public default constructor or an public static
field called #INSTANCE.
public <T> T getPlugin(Class<T> pluginClass, String defaultClassName, T defaultInstance)
Throws if not set and no default.
Also throws if the class does not implement the required interface,
or if it does not have a public default constructor or an public static
field called #INSTANCE.
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.