jsonapi-converter
jsonapi-converter copied to clipboard
Read type name from application properties
Is there an option to set Type name from application properties. Something like Spring does
Like this :
@Type("${custom-type-name}")
class CustomType {....}
Hello,
Annotations
are Java constructs rather than lib related. All functionalities related to annotations are purely restricted to the Java programming language itself rather than the lib.
You can see https://www.baeldung.com/java-reflection-change-annotation-params for some details on how to play with annotation param values. Using approach above you could potentially create a tool that would execute on start and 'update' values accordingly before creating new instances of the client.
Thanks @jasminb I'll check it out