cz.cuni.amis.pogamut.base.utils.guice
Class ProviderAdapter<T>
java.lang.Object
cz.cuni.amis.pogamut.base.utils.guice.ProviderAdapter<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- com.google.inject.Provider<T>
public class ProviderAdapter<T>
- extends Object
- implements com.google.inject.Provider<T>
Adapts the value from some Provider
to by of type "T".
Usually not needed, as you can cast the provider to a provider of different type.
- Author:
- Jimmy
Constructor Summary |
ProviderAdapter(com.google.inject.Provider wrappedProvider)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProviderAdapter
public ProviderAdapter(com.google.inject.Provider wrappedProvider)
get
public T get()
- Specified by:
get
in interface com.google.inject.Provider<T>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.