Package org.apache.druid.guice
Class LifecycleScope
- java.lang.Object
-
- org.apache.druid.guice.LifecycleScope
-
- All Implemented Interfaces:
com.google.inject.Scope
public class LifecycleScope extends Object implements com.google.inject.Scope
A scope that adds objects to the Lifecycle. This is by definition also a lazy singleton scope.
-
-
Constructor Summary
Constructors Constructor Description LifecycleScope(Lifecycle.Stage stage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.google.inject.Provider<T>scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped)voidsetLifecycle(Lifecycle lifecycle)
-
-
-
Constructor Detail
-
LifecycleScope
public LifecycleScope(Lifecycle.Stage stage)
-
-
Method Detail
-
setLifecycle
public void setLifecycle(Lifecycle lifecycle)
-
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
-
-