public abstract class AbstractModuleConfig extends Object implements ModuleConfig
ModuleConfig
.
Implementations can focus on implementing the core getOptional* methods.Constructor and Description |
---|
AbstractModuleConfig() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOptionalBooleanProperty, getOptionalDateTimeProperty, getOptionalDoubleProperty, getOptionalFloatProperty, getOptionalIntProperty, getOptionalLongProperty, getOptionalPathListProperty, getOptionalPathProperty, getOptionalStringListProperty, getOptionalStringProperty, getPropertyNames, hasProperty
public String getStringProperty(String name)
getStringProperty
in interface ModuleConfig
public String getStringProperty(String name, String defaultValue)
getStringProperty
in interface ModuleConfig
public List<String> getStringListProperty(String name)
getStringListProperty
in interface ModuleConfig
public List<String> getStringListProperty(String name, List<String> defaultValue)
getStringListProperty
in interface ModuleConfig
public <E extends Enum<E>> Optional<E> getOptionalEnumProperty(String name, Class<E> clazz)
getOptionalEnumProperty
in interface ModuleConfig
public <E extends Enum<E>> E getEnumProperty(String name, Class<E> clazz)
getEnumProperty
in interface ModuleConfig
public <E extends Enum<E>> E getEnumProperty(String name, Class<E> clazz, E defaultValue)
getEnumProperty
in interface ModuleConfig
public <E extends Enum<E>> Optional<Set<E>> getOptionalEnumSetProperty(String name, Class<E> clazz)
getOptionalEnumSetProperty
in interface ModuleConfig
public <E extends Enum<E>> Set<E> getEnumSetProperty(String name, Class<E> clazz)
getEnumSetProperty
in interface ModuleConfig
public <E extends Enum<E>> Set<E> getEnumSetProperty(String name, Class<E> clazz, Set<E> defaultValue)
getEnumSetProperty
in interface ModuleConfig
public int getIntProperty(String name)
getIntProperty
in interface ModuleConfig
public int getIntProperty(String name, int defaultValue)
getIntProperty
in interface ModuleConfig
public long getLongProperty(String name)
getLongProperty
in interface ModuleConfig
public long getLongProperty(String name, long defaultValue)
getLongProperty
in interface ModuleConfig
public float getFloatProperty(String name)
getFloatProperty
in interface ModuleConfig
public float getFloatProperty(String name, float defaultValue)
getFloatProperty
in interface ModuleConfig
public double getDoubleProperty(String name)
getDoubleProperty
in interface ModuleConfig
public double getDoubleProperty(String name, double defaultValue)
getDoubleProperty
in interface ModuleConfig
public boolean getBooleanProperty(String name)
getBooleanProperty
in interface ModuleConfig
public boolean getBooleanProperty(String name, boolean defaultValue)
getBooleanProperty
in interface ModuleConfig
public Path getPathProperty(String name)
getPathProperty
in interface ModuleConfig
public Path getPathProperty(String name, Path defaultValue)
getPathProperty
in interface ModuleConfig
public List<Path> getPathListProperty(String name)
getPathListProperty
in interface ModuleConfig
public <T> Optional<Class<? extends T>> getOptionalClassProperty(String name, Class<T> subClass)
getOptionalClassProperty
in interface ModuleConfig
public <T> Class<? extends T> getClassProperty(String name, Class<T> subClass)
getClassProperty
in interface ModuleConfig
public <T> Class<? extends T> getClassProperty(String name, Class<T> subClass, Class<? extends T> defaultValue)
getClassProperty
in interface ModuleConfig
public org.joda.time.DateTime getDateTimeProperty(String name)
getDateTimeProperty
in interface ModuleConfig
public Optional<org.joda.time.Interval> getOptionalIntervalProperty(String name)
getOptionalIntervalProperty
in interface ModuleConfig
public org.joda.time.Interval getIntervalProperty(String name)
getIntervalProperty
in interface ModuleConfig
Copyright © 2020. All rights reserved.