net.contextfw.web.application.internal.scope
Class WebApplicationScope
java.lang.Object
net.contextfw.web.application.internal.scope.WebApplicationScope
- All Implemented Interfaces:
- com.google.inject.Scope
public class WebApplicationScope
- extends Object
- implements com.google.inject.Scope
|
Method Summary |
void |
enter()
|
void |
exit()
|
<T> com.google.inject.Provider<T> |
|
scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped)
|
|
seed(Class<T> clazz,
T value)
|
|
seed(com.google.inject.Key<T> key,
T value)
|
static
<T> com.google.inject.Provider<T> |
|
seededKeyProvider()
Returns a provider that always throws exception complaining that the
object in question must be seeded before it can be injected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.inject.Scope |
toString |
WebApplicationScope
public WebApplicationScope()
enter
public void enter()
exit
public void exit()
seed
public <T> void seed(com.google.inject.Key<T> key,
T value)
seed
public <T> void seed(Class<T> clazz,
T value)
scope
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped)
- Specified by:
scope in interface com.google.inject.Scope
seededKeyProvider
public static <T> com.google.inject.Provider<T> seededKeyProvider()
- Returns a provider that always throws exception complaining that the
object in question must be seeded before it can be injected.
- Returns:
- typed provider
Copyright © 2010. All Rights Reserved.