public abstract class AbstractEnumProviderSynchronous extends AbstractEnumProvider
AbstractEnumProvider
that retrieves
enum values
synchronously.AbstractEnumProvider.EnumContainer
Constructor and Description |
---|
AbstractEnumProviderSynchronous()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
require(Runnable callback,
EnumDefinition<?,?>... enumDefinitions)
This method triggers that the given
EnumDefinition s are available . |
clear, doInitialize, getEnumContainer, getEnumDefinition, getEnumDefinition, getEnumDefinitions, getEnumDefinitionWithCategory, getEnumValue, getEnumValue, getEnumValues, getEnumValues, getStringUtil, isAvailable, isSupportEnumAutoRegistration, iterator, loadEnumValues, registerEnum, registerEnumDefinition, registerEnumDefinitions, require, setStringUtil
createLogger, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public AbstractEnumProviderSynchronous()
public void require(Runnable callback, EnumDefinition<?,?>... enumDefinitions)
EnumProvider
EnumDefinition
s are available
. In
advanced to EnumProvider.require(EnumDefinition...)
it allows to specify a callback that gets invoked after the
required EnumDefinition
s are available
. This is useful in asynchronous
environments (e.g. in client applications that have to receive the values (asynchronously) from the server).callback
- is a Runnable
that will be called
after all given
EnumDefinition
s are available
.enumDefinitions
- are the EnumDefinition
s of the required enumerations.Copyright © 2001–2016 mmm-Team. All rights reserved.