java - How to set javax.ws.rs.Path annotation value from properties -


this question has answer here:

i want set javax.ws.rs.path annotation value properties file. the purpose not make configurable, rather purpose separate value code.

the following code works:

private final string path="my_path";  @get @path(path) @produces(mediatype.text_xml) public string wsdlrequest(@context uriinfo uriinfo) {     ....      ...     .. } 

but following not:

private final string path=bundle.getstring("path"); 

i guess 1 cannot, since value isn't available in compile time.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -