-
Notifications
You must be signed in to change notification settings - Fork 180
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
Using LifecycleManager is not documented right? #304
Comments
the issue is likely that the code above is referencing "com.netflix.governator.LifecycleManager" (governator-core), rather than "com.netflix.governator.lifecycle.LifecycleManager" (governator-legacy) which does have a start() method. We're working to simplify the Governator internals and move away from governator-legacy, but work is not yet complete. In the meantime if you change your imports to use "com.netflix.governator.lifecycle.LifecycleManager", then lifecycle management can be started per the docs. |
Sounds good. I think the correct approach would be to document it properly - exactly what you wrote above until you will fix it |
I would simply change this page to say: "Make sure you import the correct class which is |
Just stumbled upon this also. Not sure, what is there right import here.
has a start method, while
has not. So what is the correct approch? |
In the docs it says:
LifecycleManager manager = injector.getInstance(LifecycleManager.class); manager.start();
I'm using version 1.12.0 (from Jan 2016) and from some reason LifecycleManager class doesn't have start() or stop() method.
How should I enable the Lifecycle feature?
The text was updated successfully, but these errors were encountered: