com.filenet.api.util
Class Configuration
- java.lang.Object
-
- com.filenet.api.util.Configuration
-
public final class Configuration extends java.lang.ObjectRepresents a singleton instance of the client's configuration parameters. These parameters are used to control the behavior for various features. In the absence of any setting for a specific parameter, via configuration or programmatic action, an appropriate default is used.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.ObjectgetParameter(ConfigurationParameter parameter)Retrieves a configured value.static voidinit(ConfigurationParameters parameters)Initializes and configures the client API.
-
-
-
Method Detail
-
init
public static void init(ConfigurationParameters parameters)
Initializes and configures the client API. Initialization is optional; if called, it may only be called once per period (a "period" being the life of the client process).- Parameters:
parameters- Configuration values to set on initialization. The API is first configured internally. The parameter values specified on this call, if any, override the values from the internal initialization and configuration.- Throws:
- if the API has previously been initialized.API_INITIALIZED
-
getParameter
public static java.lang.Object getParameter(ConfigurationParameter parameter)
Retrieves a configured value.A return value of
nullindicates that no value has been explicitly configured for the requested parameter and an appropriate default value for the parameter is used instead.- Parameters:
parameter- The parameter for the value to retrieve. SeeConfigurationParameter.- Returns:
- The
Objectassociated with the requested parameter value. If no value has been configured for the requested parameter, this method returnsnull.
-
-