Package org.n52.iceland.util
Class LazyThreadSafeProducer<T>
- java.lang.Object
-
- org.n52.iceland.util.LazyThreadSafeProducer<T>
-
- All Implemented Interfaces:
com.google.common.base.Supplier<T>,Supplier<T>,javax.inject.Provider<T>,Producer<T>
- Direct Known Subclasses:
LocalizedLazyThreadSafeProducer
public abstract class LazyThreadSafeProducer<T> extends Object implements Producer<T>
-
-
Constructor Summary
Constructors Constructor Description LazyThreadSafeProducer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Tcreate()Tget()protected voidsetRecreate()
-
-
-
Method Detail
-
setRecreate
protected void setRecreate()
-
get
public T get() throws ConfigurationError
-
create
protected abstract T create() throws ConfigurationError
- Throws:
ConfigurationError
-
-