public class ProviderMethod<T> extends Object implements ProviderWithDependencies<T>
Modifier and Type | Method and Description |
---|---|
void |
configure(Binder binder) |
T |
get()
Provides an instance of
T . |
Set<Dependency<?>> |
getDependencies()
Returns the known dependencies for this type.
|
Object |
getInstance() |
Key<T> |
getKey() |
Method |
getMethod() |
public Method getMethod()
public Object getInstance()
public void configure(Binder binder)
public T get()
Provider
T
. Must never return null
.public Set<Dependency<?>> getDependencies()
HasDependencies
Injector
will be
included in the returned set.getDependencies
in interface HasDependencies
Copyright © 2009–2016. All rights reserved.