Class AbstractClusterDecorator
java.lang.Object
java.util.AbstractMap<String,Object>
org.hippoecm.frontend.model.map.AbstractValueMap
org.hippoecm.frontend.plugin.config.impl.AbstractPluginDecorator
org.hippoecm.frontend.plugin.config.impl.AbstractClusterDecorator
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
,org.apache.wicket.util.value.IValueMap
,IObservable
,IClusterConfig
,IPluginConfig
- Direct Known Subclasses:
ClusterConfigDecorator
public abstract class AbstractClusterDecorator
extends AbstractPluginDecorator
implements IClusterConfig
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from class org.hippoecm.frontend.plugin.config.impl.AbstractPluginDecorator
obContext, upstream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IObservationContext<IClusterConfig>
The plugin configurations in the cluster.Properties that specify additional plugin behavior.Descriptors of additional plugin properties.The keys for services that are used by plugins in the cluster.The list of keys for services.protected IClusterConfig
void
setPlugins
(List<IPluginConfig> plugins) Update the plugins in the cluster.void
When the firstIObserver
of this observable is registered with the observer registry, observation is started.void
When the lastIObserver
unregisters, observation is stopped.Methods inherited from class org.hippoecm.frontend.plugin.config.impl.AbstractPluginDecorator
containsKey, decorate, detach, entrySet, equals, get, getDouble, getDouble, getDuration, getInstant, getName, getPluginConfig, getPluginConfigSet, hashCode, isImmutable, makeImmutable, setObservationContext, toString, wrap, wrapConfig
Methods inherited from class org.hippoecm.frontend.model.map.AbstractValueMap
add, clear, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInstant, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getBoolean, getCharSequence, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, putAll, remove
Methods inherited from class java.util.AbstractMap
clone, containsValue, isEmpty, keySet, put, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hippoecm.frontend.model.event.IObservable
equals, hashCode, setObservationContext
Methods inherited from interface org.hippoecm.frontend.plugin.config.IPluginConfig
getName, getPluginConfig, getPluginConfigSet
Methods inherited from interface org.apache.wicket.util.value.IValueMap
getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInstant, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInstant, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, isImmutable, makeImmutable
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
AbstractClusterDecorator
-
-
Method Details
-
getUpstream
-
getPlugins
Description copied from interface:IClusterConfig
The plugin configurations in the cluster. Returns an immutable list of plugins.- Specified by:
getPlugins
in interfaceIClusterConfig
-
setPlugins
Description copied from interface:IClusterConfig
Update the plugins in the cluster. Only available when the the configuration is used as a template for the cluster configuration.- Specified by:
setPlugins
in interfaceIClusterConfig
-
getProperties
Description copied from interface:IClusterConfig
Properties that specify additional plugin behavior.The returned list is only mutable when the configuration is used as a template.
- Specified by:
getProperties
in interfaceIClusterConfig
-
getReferences
Description copied from interface:IClusterConfig
The keys for services that are used by plugins in the cluster.The returned list is only mutable when the configuration is used as a template.
- Specified by:
getReferences
in interfaceIClusterConfig
-
getServices
Description copied from interface:IClusterConfig
The list of keys for services. Since service types are not available, it is recommended to always use well-known keys when they exist. I.e. use "wicket.id" to identify anIRenderService
.The returned list is only mutable when the configuration is used as a template.
- Specified by:
getServices
in interfaceIClusterConfig
-
getPropertyDescriptors
Description copied from interface:IClusterConfig
Descriptors of additional plugin properties.Changes to the returned list have no effect on actual configuration.
- Specified by:
getPropertyDescriptors
in interfaceIClusterConfig
-
getObservationContext
- Overrides:
getObservationContext
in classAbstractPluginDecorator
-
startObservation
public void startObservation()Description copied from interface:IObservable
When the firstIObserver
of this observable is registered with the observer registry, observation is started. Implementations must notify observers until observation is stopped.An implementation should register listeners with external data sources, when appropriate. It is possible for an observable to register as an observer for another observable.
- Specified by:
startObservation
in interfaceIObservable
- Overrides:
startObservation
in classAbstractPluginDecorator
-
stopObservation
public void stopObservation()Description copied from interface:IObservable
When the lastIObserver
unregisters, observation is stopped. Any listeners or observers registered by the observable must be unregistered by the implementation.- Specified by:
stopObservation
in interfaceIObservable
- Overrides:
stopObservation
in classAbstractPluginDecorator
-