com.google.inject
Class ProviderMethods
java.lang.Object
com.google.inject.ProviderMethods
public class ProviderMethods
- extends Object
Creates bindings to methods annotated with
Provides
. Use the scope and binding annotations
on the provider method to configure the binding.
Method Summary |
static Module |
from(Object providers)
Returns a module which creates bindings for provider methods from the
given object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProviderMethods
public ProviderMethods()
from
public static Module from(Object providers)
- Returns a module which creates bindings for provider methods from the
given object.