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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -