Top Description Fields Constructors Methods
net.fortuna.ical4j.util

public final Class Configurator

extends Object
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, java.io.IOException, java.util.Optional, .Properties

$Id$

Created on 06/02/2008

Provides configuration properties specified either as system properties or in an ical4j.properties configuration file.

Author
Ben

Field Summary

Modifier and TypeField and Description
private static final Properties
private static final Logger

Constructor Summary

AccessConstructor and Description
private
Configurator()

Constructor made private to enforce static nature.

Method Summary

Modifier and TypeMethod and Description
public static <T extends Enum<T>> Optional<T>
getEnumProperty(Class<T> clazz, String key)

public static Optional<Integer>
public static <T> Optional<T>
public static Optional<String>

Returns:

true if the specified compatibility hint is enabled, otherwise false
getProperty
(final String
a compatibility hint key
key
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONFIGback to summary
private static final Properties CONFIG
LOGback to summary
private static final Logger LOG

Constructor Detail

Configuratorback to summary
private Configurator()

Constructor made private to enforce static nature.

Method Detail

getEnumPropertyback to summary
public static <T extends Enum<T>> Optional<T> getEnumProperty(Class<T> clazz, String key)
getIntPropertyback to summary
public static Optional<Integer> getIntProperty(final String key)
getObjectPropertyback to summary
public static <T> Optional<T> getObjectProperty(String key)
getPropertyback to summary
public static Optional<String> getProperty(final String key)
Parameters
key:String

a compatibility hint key

Returns:Optional<String>

true if the specified compatibility hint is enabled, otherwise false