Package io.vertigo.core.node.config
Record Class ComponentConfig
java.lang.Object
java.lang.Record
io.vertigo.core.node.config.ComponentConfig
- Record Components:
apiClassOpt- api of the componentimplClass- impl class of the componentparams- params
public record ComponentConfig(Optional<Class<? extends Component>> apiClassOpt, Class<? extends Component> implClass, List<Param> params)
extends Record
The componentconfig class defines the configuration of a component.
A component is defined by
- an id.
- proxy or pure component -no proxy-
- a implemenation class (empty if proxy, required if not proxy)
- an optional api class. (required if proxy)
- a map of params
- Author:
- npiedeloup, pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiClassOptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimplClassrecord component.params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentConfig
public ComponentConfig(Optional<Class<? extends Component>> apiClassOpt, Class<? extends Component> implClass, List<Param> params) Creates an instance of aComponentConfigrecord class.- Parameters:
apiClassOpt- the value for theapiClassOptrecord componentimplClass- the value for theimplClassrecord componentparams- the value for theparamsrecord component
-
-
Method Details
-
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). -
apiClassOpt
Returns the value of theapiClassOptrecord component.- Returns:
- the value of the
apiClassOptrecord component
-
implClass
Returns the value of theimplClassrecord component.- Returns:
- the value of the
implClassrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-