-
-
Notifications
You must be signed in to change notification settings - Fork 229
Java code generation for config interfaces #33
Copy link
Copy link
Open
Labels
IntermediateProjects that require a medium level of understanding. Doesn't require much prior knowledge.Projects that require a medium level of understanding. Doesn't require much prior knowledge.Medium workThis project takes little time to complete. (ETA week or two)This project takes little time to complete. (ETA week or two)
Metadata
Metadata
Assignees
Labels
IntermediateProjects that require a medium level of understanding. Doesn't require much prior knowledge.Projects that require a medium level of understanding. Doesn't require much prior knowledge.Medium workThis project takes little time to complete. (ETA week or two)This project takes little time to complete. (ETA week or two)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Project description
For dealing with properties/configuration files in java, and mapping them to interfaces there is an already incredible OWNER framework. As you can see on the basic usage page, it allows us to very conveniently abstract where and how something is configured.
It would be nice to have something very similar but with the following differences:
Basic Usage (copied from the basic usage link above)
ServerConfig.propertiesServerConfig.javapublic interface ServerConfig extends Config { int port(); String hostname(); @DefaultValue("42") int maxThreads(); }elsewhere in the code...
Relevant Technology
I think it should be compatible with java 8's default interfaces, and follow in OWNER's philosophy of having 0 dependencies.
very basic annotations processing article: https://deors.wordpress.com/2011/10/08/annotation-processors/
Who is this for
intermediate+ java developers I'd imagine.
I am willing to work on this but not sure where I should start / get feedback on designs etc. Unfortunately it looks like the original owner library is not very active.