T
- the type of parameters supported by this handlerpublic interface DefaultParametersHandler<T>
Definition of an interface for setting default values for specific configuration parameter objects.
An object implementing this interface knows how to initialize a parameters
object of a specific class with default values. Such objects can be
registered at the Parameters
class. Whenever a specific parameters
object is created all registered DefaultParametersHandler
objects
that can handle this parameters type are invoked, so that they get the chance
to perform arbitrary initialization.
Modifier and Type | Method and Description |
---|---|
void |
initializeDefaults(T parameters)
Initializes the specified parameters object with default values.
|
void initializeDefaults(T parameters)
DefaultParametersHandler
objects registered supporting this
parameters type they are called in the order they have been registered.
So handlers registered later can override initializations done by
handlers registered earlier.parameters
- the parameters object to be initializedCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.