jsonapi-converter icon indicating copy to clipboard operation
jsonapi-converter copied to clipboard

Read type name from application properties

Open avoxm opened this issue 5 years ago • 2 comments

Is there an option to set Type name from application properties. Something like Spring does

Like this :

@Type("${custom-type-name}")
class CustomType {....}

avoxm avatar May 23 '19 21:05 avoxm

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.

jasminb avatar May 24 '19 08:05 jasminb

Thanks @jasminb I'll check it out

avoxm avatar May 30 '19 22:05 avoxm