cz.cuni.amis.pogamut.base.utils.guice
Class ProviderAdapter<T>

java.lang.Object
  extended by 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 java.lang.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.


Constructor Summary
ProviderAdapter(com.google.inject.Provider wrappedProvider)
           
 
Method Summary
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderAdapter

public ProviderAdapter(com.google.inject.Provider wrappedProvider)
Method Detail

get

public T get()
Specified by:
get in interface com.google.inject.Provider<T>