public class JoynrMessageScope extends Object implements com.google.inject.Scope
JoynrMessageScoped.| Constructor and Description |
|---|
JoynrMessageScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Call this method to activate the
JoynrMessageScope for the current thread. |
void |
deactivate()
Call this method in a
finally block after having called activate() in order to de-activate
the scope for the current thread. |
<T> com.google.inject.Provider<T> |
scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped) |
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped)
scope in interface com.google.inject.Scopepublic void activate()
JoynrMessageScope for the current thread. It is not valid to call this
method more than once.IllegalStateException - if you have already activated this scope for the current thread.public void deactivate()
finally block after having called activate() in order to de-activate
the scope for the current thread.Copyright © 2021. All rights reserved.