@PublicEvolving public class FactoryHelper extends Object
Factory.| 限定符和类型 | 类和说明 |
|---|---|
static class |
FactoryHelper.DefaultContext
Default implementation of
Factory.Context. |
| 限定符和类型 | 方法和说明 |
|---|---|
static FactoryHelper |
createFactoryHelper(Factory factory,
Factory.Context context) |
void |
validate()
Validates the options of the factory.
|
void |
validateExcept(String... prefixesToSkip)
Validates the options of the factory.
|
static void |
validateFactoryOptions(Factory factory,
Configuration configuration)
Validates the required and optional
ConfigOptions of a factory. |
static void |
validateFactoryOptions(Set<ConfigOption<?>> requiredOptions,
Set<ConfigOption<?>> optionalOptions,
Configuration configuration)
Validates the required options and optional options.
|
static void |
validateUnconsumedKeys(String factoryIdentifier,
Set<String> allOptionKeys,
Set<String> consumedOptionKeys)
Validates unconsumed option keys.
|
public static FactoryHelper createFactoryHelper(Factory factory, Factory.Context context)
public static void validateFactoryOptions(Factory factory, Configuration configuration)
ConfigOptions of a factory.
Note: It does not check for left-over options.
public static void validateFactoryOptions(Set<ConfigOption<?>> requiredOptions, Set<ConfigOption<?>> optionalOptions, Configuration configuration)
Note: It does not check for left-over options.
public static void validateUnconsumedKeys(String factoryIdentifier, Set<String> allOptionKeys, Set<String> consumedOptionKeys)
public void validate()
public void validateExcept(String... prefixesToSkip)
The option keys that have given prefix prefixToSkip would just be skipped for
validation.
prefixesToSkip - Set of option key prefixes to skip validationCopyright © 2025 The Apache Software Foundation. All rights reserved.