Class JavaPluginConfig
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- org.apache.wicket.util.value.ValueMap
-
- org.hippoecm.frontend.plugin.config.impl.JavaPluginConfig
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
,org.apache.wicket.util.io.IClusterable
,org.apache.wicket.util.value.IValueMap
,IObservable
,IPluginConfig
- Direct Known Subclasses:
JavaClusterConfig
,NodePickerPluginConfig
public class JavaPluginConfig extends org.apache.wicket.util.value.ValueMap implements IPluginConfig
- See Also:
- Serialized Form
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description JavaPluginConfig()
JavaPluginConfig(String name)
JavaPluginConfig(IPluginConfig parentConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Map.Entry<String,Object>>
entrySet()
boolean
equals(Object o)
Equivalence of observables; observation will only be started on one instance.String
getName()
The name of the configuration.protected IObservationContext<? extends IPluginConfig>
getObservationContext()
IPluginConfig
getPluginConfig(Object key)
Retrieve a child config of a particular name.Set<IPluginConfig>
getPluginConfigSet()
Retrieve a set of child plugin configurations.int
hashCode()
protected IPluginConfig
newPluginConfig(IPluginConfig source)
Object
put(String key, Object value)
void
putAll(Map<? extends String,?> map)
void
setObservationContext(IObservationContext<? extends IObservable> context)
Before observation is started on the observable, an observation context is injected by the observer registry.void
startObservation()
When the firstIObserver
of this observable is registered with the observer registry, observation is started.void
stopObservation()
When the lastIObserver
unregisters, observation is stopped.-
Methods inherited from class org.apache.wicket.util.value.ValueMap
add, clear, 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, remove, toString
-
Methods inherited from class java.util.LinkedHashMap
containsValue, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
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, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
JavaPluginConfig
public JavaPluginConfig()
-
JavaPluginConfig
public JavaPluginConfig(String name)
-
JavaPluginConfig
public JavaPluginConfig(IPluginConfig parentConfig)
-
-
Method Detail
-
newPluginConfig
protected IPluginConfig newPluginConfig(IPluginConfig source)
-
getName
public String getName()
Description copied from interface:IPluginConfig
The name of the configuration. When the configuration is passed to a plugin, this name is unique within the system. It can therefore be used to construct unique service names.- Specified by:
getName
in interfaceIPluginConfig
-
getPluginConfigSet
public Set<IPluginConfig> getPluginConfigSet()
Description copied from interface:IPluginConfig
Retrieve a set of child plugin configurations.- Specified by:
getPluginConfigSet
in interfaceIPluginConfig
-
getPluginConfig
public IPluginConfig getPluginConfig(Object key)
Description copied from interface:IPluginConfig
Retrieve a child config of a particular name. In the JCR implementation, this corresponds to a child node of type frontend:pluginconfig.- Specified by:
getPluginConfig
in interfaceIPluginConfig
-
equals
public final boolean equals(Object o)
Description copied from interface:IObservable
Equivalence of observables; observation will only be started on one instance.- Specified by:
equals
in interfaceIObservable
- Specified by:
equals
in interfaceMap<String,Object>
- Overrides:
equals
in classAbstractMap<String,Object>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIObservable
- Specified by:
hashCode
in interfaceMap<String,Object>
- Overrides:
hashCode
in classAbstractMap<String,Object>
- See Also:
IObservable.equals(Object)
-
setObservationContext
public void setObservationContext(IObservationContext<? extends IObservable> context)
Description copied from interface:IObservable
Before observation is started on the observable, an observation context is injected by the observer registry. This context can be used to notify listeners.- Specified by:
setObservationContext
in interfaceIObservable
-
getObservationContext
protected IObservationContext<? extends IPluginConfig> getObservationContext()
-
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
-
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
-
-