Package io.vertigo.core.node.config
Record Class ModuleConfig
java.lang.Object
java.lang.Record
io.vertigo.core.node.config.ModuleConfig
public record ModuleConfig(String name, List<DefinitionProviderConfig> definitionProviderConfigs, List<ComponentConfig> componentConfigs, List<PluginConfig> pluginConfigs, List<ConnectorConfig> connectorConfigs, List<AmplifierConfig> amplifierConfigs, List<AspectConfig> aspectConfigs, List<AmplifierMethodConfig> amplifierMethodConfigs)
extends Record
Configuration of a module.
This config module contains
- config of components
- config of plugins
- config of resources
- params
- Author:
- npiedeloup, pchretien
-
Constructor Summary
ConstructorsConstructorDescriptionModuleConfig(String name, List<DefinitionProviderConfig> definitionProviderConfigs, List<ComponentConfig> componentConfigs, List<PluginConfig> pluginConfigs, List<ConnectorConfig> connectorConfigs, List<AmplifierConfig> amplifierConfigs, List<AspectConfig> aspectConfigs, List<AmplifierMethodConfig> amplifierMethodConfigs) Creates an instance of aModuleConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theamplifierConfigsrecord component.Returns the value of theamplifierMethodConfigsrecord component.Returns the value of theaspectConfigsrecord component.static ModuleConfigBuilderStatic method factory for ModuleConfigBuilderReturns the value of thecomponentConfigsrecord component.Returns the value of theconnectorConfigsrecord component.Returns the value of thedefinitionProviderConfigsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepluginConfigsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleConfig
public ModuleConfig(String name, List<DefinitionProviderConfig> definitionProviderConfigs, List<ComponentConfig> componentConfigs, List<PluginConfig> pluginConfigs, List<ConnectorConfig> connectorConfigs, List<AmplifierConfig> amplifierConfigs, List<AspectConfig> aspectConfigs, List<AmplifierMethodConfig> amplifierMethodConfigs) Creates an instance of aModuleConfigrecord class.- Parameters:
name- the value for thenamerecord componentdefinitionProviderConfigs- the value for thedefinitionProviderConfigsrecord componentcomponentConfigs- the value for thecomponentConfigsrecord componentpluginConfigs- the value for thepluginConfigsrecord componentconnectorConfigs- the value for theconnectorConfigsrecord componentamplifierConfigs- the value for theamplifierConfigsrecord componentaspectConfigs- the value for theaspectConfigsrecord componentamplifierMethodConfigs- the value for theamplifierMethodConfigsrecord component
-
-
Method Details
-
builder
Static method factory for ModuleConfigBuilder- Parameters:
name- Name of the module- Returns:
- ModuleConfigBuilder
-
getComponentConfigs
- Returns:
- the list of the component-configs
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
definitionProviderConfigs
Returns the value of thedefinitionProviderConfigsrecord component.- Returns:
- the value of the
definitionProviderConfigsrecord component
-
componentConfigs
Returns the value of thecomponentConfigsrecord component.- Returns:
- the value of the
componentConfigsrecord component
-
pluginConfigs
Returns the value of thepluginConfigsrecord component.- Returns:
- the value of the
pluginConfigsrecord component
-
connectorConfigs
Returns the value of theconnectorConfigsrecord component.- Returns:
- the value of the
connectorConfigsrecord component
-
amplifierConfigs
Returns the value of theamplifierConfigsrecord component.- Returns:
- the value of the
amplifierConfigsrecord component
-
aspectConfigs
Returns the value of theaspectConfigsrecord component.- Returns:
- the value of the
aspectConfigsrecord component
-
amplifierMethodConfigs
Returns the value of theamplifierMethodConfigsrecord component.- Returns:
- the value of the
amplifierMethodConfigsrecord component
-