Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Right way of using Governator's @configuration annotation
public class MyClass {
private String pathPrefix;
private String fileName;
public MyClass(String fileName) {
this.fileName = fileName; //here we simply store it
void initialize() {
fileName = pathPrefix + fileName; //and here we use the configuration setting and create the full path
//... rest of the work goes here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment