public final class GuiceAsync extends Object
public class MyModule extends AbstractModule {
@Override
public void configure() {
GuiceAsync.enableFor(binder());
// ...
}
}
Please see the JavaDoc of the Async and Scheduled annotation for
further usage information.| Modifier and Type | Method and Description |
|---|---|
static com.google.inject.Module |
createModule()
Creates a module that can be used to enable asynchronous method support.
|
static void |
enableFor(com.google.inject.Binder binder)
Enable support for the
Async annotation in classes that are used with the
injector that will be created from the given Binder. |
public static void enableFor(com.google.inject.Binder binder)
Async annotation in classes that are used with the
injector that will be created from the given Binder.binder - The binder to register with.public static com.google.inject.Module createModule()
Copyright © 2014–2018. All rights reserved.