Package org.n52.iceland.util
Class LocalizedLazyThreadSafeProducer<T>
- java.lang.Object
-
- org.n52.iceland.util.LazyThreadSafeProducer<T>
-
- org.n52.iceland.util.LocalizedLazyThreadSafeProducer<T>
-
- All Implemented Interfaces:
com.google.common.base.Supplier<T>,Supplier<T>,javax.inject.Provider<T>,LocalizedProducer<T>,Producer<T>
- Direct Known Subclasses:
OwsServiceIdentificationFactory,OwsServiceProviderFactory
public abstract class LocalizedLazyThreadSafeProducer<T> extends LazyThreadSafeProducer<T> implements LocalizedProducer<T>
-
-
Constructor Summary
Constructors Constructor Description LocalizedLazyThreadSafeProducer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Tcreate()protected abstract Tcreate(Locale language)Tget(Locale language)Get language specific Producer resultprotected voidsetRecreate()-
Methods inherited from class org.n52.iceland.util.LazyThreadSafeProducer
get
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.iceland.util.LocalizedProducer
getAvailableLocales
-
-
-
-
Method Detail
-
setRecreate
protected void setRecreate()
- Overrides:
setRecreatein classLazyThreadSafeProducer<T>
-
get
public T get(Locale language) throws ConfigurationError
Description copied from interface:LocalizedProducerGet language specific Producer result- Specified by:
getin interfaceLocalizedProducer<T>- Parameters:
language- The resulting language- Returns:
- Result in the specified language
- Throws:
ConfigurationError
-
create
protected T create() throws ConfigurationError
- Specified by:
createin classLazyThreadSafeProducer<T>- Throws:
ConfigurationError
-
create
protected abstract T create(Locale language) throws ConfigurationError
- Throws:
ConfigurationError
-
-