M - the actual ParameterizedModel sub-type of the component being built.public static interface ComponentParameterization.Builder<M extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>
ComponentParameterization instances.| Modifier and Type | Method and Description |
|---|---|
ComponentParameterization<M> |
build()
Performs validations on the parameters provided through
withParameter(String, String, Object). |
ComponentParameterization.Builder<M> |
withParameter(String paramName,
Object paramValue)
Sets a parameter with a given value, automatically determining the group the parameter belongs to.
|
ComponentParameterization.Builder<M> |
withParameter(String paramGroupName,
String paramName,
Consumer<ValueDeclarer> valueDeclarerConsumer)
Sets a parameter with a given value defined by a consumer of a
ValueDeclarer |
ComponentParameterization.Builder<M> |
withParameter(String paramGroupName,
String paramName,
Object paramValue)
Sets a parameter with a given value.
|
ComponentParameterization<M> build() throws IllegalStateException
withParameter(String, String, Object). If valid, returns a
ComponentParameterization, otherwise an IllegalStateException is thrown.ComponentParameterization.IllegalStateException - if any provided parameter is invalid, indicating which parameter and the reason for it being
invalid.ComponentParameterization.Builder<M> withParameter(String paramGroupName, String paramName, Object paramValue) throws IllegalArgumentException
paramGroupName - the name of the group containing the parameter to set.paramName - the name of the parameter within the paramGroupName group to set.paramValue - the value of the parameter to setIllegalArgumentException - if the provided parameter group and name does not exist for the model or is not of
a valid type.ComponentParameterization.Builder<M> withParameter(String paramName, Object paramValue) throws IllegalArgumentException
paramName - the name of the parameter within the paramGroupName group to set.paramValue - the value of the parameter to setIllegalArgumentException - if the provided parameter name does not exist for the model, a parameter with the
same name exists in more than on parameter group, or is not of a valid type.ComponentParameterization.Builder<M> withParameter(String paramGroupName, String paramName, Consumer<ValueDeclarer> valueDeclarerConsumer) throws IllegalArgumentException
ValueDeclarerparamGroupName - the name of the group containing the parameter to set.paramName - the name of the parameter within the paramGroupName group to set.valueDeclarerConsumer - a consumer to configure the value of the parameterIllegalArgumentException - if the provided parameter group and name does not exist for the modelCopyright © 2022 MuleSoft, Inc.. All rights reserved.