-
Notifications
You must be signed in to change notification settings - Fork 4.6k
pass in persistence paths as env variables #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
import javax.ws.rs.core.HttpHeaders; | ||
import org.glassfish.hk2.api.Factory; | ||
|
||
public class ConfigurationApiFactory implements Factory<ConfigurationApi> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
following suggestion from here https://stackoverflow.com/questions/16216759/dependency-injection-with-jersey-2-0/29275727#29275727. the use of the static field to pass in the param still feels jenky. maybe i'm missing something smarter?
@@ -64,6 +80,6 @@ public void start() throws Exception { | |||
public static void main(String[] args) throws Exception { | |||
LOGGER.info("Starting server..."); | |||
|
|||
new ServerApp().start(); | |||
new ServerApp("/Users/charles/code/dataline/data/config").start(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: actually move this into a env variable. i will do this before i merge.
acefa4e
to
42bc19f
Compare
42bc19f
to
268298b
Compare
What