|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.utils.guice.AdaptableProvider<T>
T
- public class AdaptableProvider<T>
Simple implementation of the Guice Provider
interface that allows you to
set the value directly into the provider via set(Object)
.
This class is meant to be used by agent factories that has to preconfigure some providers before they can instantiate a new agent.
Constructor Summary | |
---|---|
AdaptableProvider()
Creates a provider with 'null' initial value. |
|
AdaptableProvider(T initialProvidedValue)
Creates a provider with initial value. |
Method Summary | |
---|---|
T |
get()
|
void |
set(T value)
Sets the provided value to 'value'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdaptableProvider()
public AdaptableProvider(T initialProvidedValue)
initialProvidedValue
- Method Detail |
---|
public void set(T value)
value
- public T get()
get
in interface com.google.inject.Provider<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |