![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
String | target () |
Public Attributes | |
String | MAPPING_META_ATTR = "mapping" |
This is a markup annotation which indicates whether mapping it to be applied.
Mapping is useful when there is a need to map or decorate a configuration value based on additional rules.
Note: This annotation can be used both at the class and at the method level.
Usage example:
@Configuration @Mapping(target = "KAFKA_TOPIC") public interface KafkaConfiguration { @Key String getIncomingTopic(); }
@Configuration public interface KafkaConfiguration { @Key @Mapping(target = "KAFKA_TOPIC") String getOutgoingTopic(); }
Definition at line 57 of file Mapping.java.
String org.openkilda.config.mapping.Mapping.target | ( | ) |
The target defines what rules is to be used for mapping.
String org.openkilda.config.mapping.Mapping.MAPPING_META_ATTR = "mapping" |
Definition at line 58 of file Mapping.java.