Record Class Tm1ServersProperties
java.lang.Object
java.lang.Record
io.skipcheck.tm1.spring.boot.autoconfigure.Tm1ServersProperties
- Record Components:
servers- each server's properties, by name
@ConfigurationProperties("tm1")
public record Tm1ServersProperties(Map<String, Tm1Properties> servers)
extends Record
The
tm1.servers.<name>.* properties: several TM1 servers, each by a name of
your choosing, with the same properties as tm1.*.
# src/main/resources/application.yml
tm1:
servers:
# Each server under a name of your choosing, with the same settings as tm1
planning:
address: http://localhost:8010
user: admin
password: ""
reporting:
address: http://localhost:8011
user: admin
password: ""
Each name gets its own beans (see Tm1AutoConfiguration), qualified by the name.
tm1.* is the server named default: tm1.servers.default.* is the
same server, and setting both is an error. The default server's beans are the ones a
plain Tm1Client injection gets.
The starter binds these itself, server by server, when it creates their beans; there's no bean of this type.
-
Constructor Summary
ConstructorsConstructorDescriptionTm1ServersProperties(Map<String, Tm1Properties> servers) Creates an instance of aTm1ServersPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.servers()Returns the value of theserversrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tm1ServersProperties
Creates an instance of aTm1ServersPropertiesrecord class.- Parameters:
servers- the value for theserversrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
servers
-