public class ApplicationCustomScope extends java.lang.Object implements LifecycleScope
Constructor and Description |
---|
ApplicationCustomScope() |
Modifier and Type | Method and Description |
---|---|
void |
registerDestroyListener(LifecycleListener listener) |
<T> com.google.inject.Provider<T> |
scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> provider) |
void |
start() |
void |
stop() |
public void registerDestroyListener(LifecycleListener listener)
registerDestroyListener
in interface LifecycleScope
public void start()
public void stop()
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> provider)
scope
in interface com.google.inject.Scope
Copyright © 2013 Caelum. All Rights Reserved.