java - How to set javax.ws.rs.Path annotation value from properties -
this question has answer here:
- jaxrs variable @path 1 answer
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
Post a Comment