Package org.apache.druid.guice
Class LifecycleScope
java.lang.Object
org.apache.druid.guice.LifecycleScope
- All Implemented Interfaces:
com.google.inject.Scope
A scope that adds objects to the Lifecycle. This is by definition also a lazy singleton scope.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> com.google.inject.Provider<T>scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped) voidsetLifecycle(Lifecycle lifecycle) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.inject.Scope
toString
-
Constructor Details
-
LifecycleScope
-
-
Method Details
-
setLifecycle
-
scope
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped) - Specified by:
scopein interfacecom.google.inject.Scope
-