public final class ConfigurationConstruct extends Object implements Construct, HasCapabilities<ConfigurationConstruct>
Construct which allows configuring a ConfigurationDeclaration
through a fluent API| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameter(ParameterDeclaration parameter)
Adds the given
parameter to the declaring configuration |
ConfigurationConstruct |
describedAs(String description)
Adds a description to the configuration
|
DeclarationConstruct |
getRootConstruct()
Returns the owning
DeclarationConstruct |
ConfigurationConstruct |
instantiatedWith(ConfigurationInstantiator configurationInstantiator)
Specifies the
ConfigurationInstantiator to be used to
create instances of objects which are compliant with the declared
configuration |
WithParameters |
with() |
ConfigurationConstruct |
withCapability(Object capability)
Adds the given capability to the declaring configuration
|
ConfigurationConstruct |
withConfig(String name)
Adds another config of the given name
|
public WithParameters with()
WithParameters which allows adding parameters
to the declaring configurationpublic ConfigurationConstruct describedAs(String description)
description - a descriptionprotected void addParameter(ParameterDeclaration parameter)
parameter to the declaring configurationparameter - a ParameterDeclarationpublic ConfigurationConstruct withCapability(Object capability)
withCapability in interface HasCapabilities<ConfigurationConstruct>capability - a not null capabilitypublic ConfigurationConstruct instantiatedWith(ConfigurationInstantiator configurationInstantiator)
ConfigurationInstantiator to be used to
create instances of objects which are compliant with the declared
configurationconfigurationInstantiator - a ConfigurationInstantiatorpublic ConfigurationConstruct withConfig(String name)
name - the name of the configConfigurationConstructpublic DeclarationConstruct getRootConstruct()
DeclarationConstructgetRootConstruct in interface ConstructDeclarationConstructCopyright © 2015 MuleSoft, Inc.. All rights reserved.