T - public class InstanceProvider<T> extends Object implements TypedProvider<T>, Serializable
| Constructor and Description |
|---|
InstanceProvider(T instance)
Deprecated.
Use
Providers.of(Object) instead. |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
Class<?> |
getProvidedType()
Get the type of object that will be provided by this provider.
|
String |
toString() |
@Deprecated public InstanceProvider(T instance)
Providers.of(Object) instead.instance - The instance.public Class<?> getProvidedType()
TypedProviderProvider.get() must be of this type. This is used to help the injector refine its types.getProvidedType in interface TypedProvider<T>Copyright © 2016 GroupLens Research. All rights reserved.