public abstract class AbstractPluginDecorator extends AbstractValueMap implements IPluginConfig, org.apache.wicket.model.IDetachable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected IObservationContext<IPluginConfig> |
obContext |
protected IPluginConfig |
upstream |
Constructor and Description |
---|
AbstractPluginDecorator(IPluginConfig upstream) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
protected abstract Object |
decorate(Object object) |
void |
detach() |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o)
Equivalence of observables; observation will only be started on one instance.
|
Object |
get(Object key) |
double |
getDouble(String key) |
double |
getDouble(String key,
double defaultValue) |
org.apache.wicket.util.time.Duration |
getDuration(String key) |
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.
|
org.apache.wicket.util.time.Time |
getTime(String key) |
int |
hashCode() |
boolean |
isImmutable() |
org.apache.wicket.util.value.IValueMap |
makeImmutable() |
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 first
IObserver of this observable is registered with the observer
registry, observation is started. |
void |
stopObservation()
When the last
IObserver unregisters, observation is stopped. |
String |
toString()
Generates a
String representation of this object. |
protected Object |
wrap(Object obj) |
protected IPluginConfig |
wrapConfig(IPluginConfig config) |
add, clear, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getAsTime, getBoolean, getCharSequence, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, putAll, remove
clone, containsValue, isEmpty, keySet, put, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getAsTime, getBoolean, getCharSequence, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue
clear, compute, computeIfAbsent, computeIfPresent, containsValue, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
protected IPluginConfig upstream
protected IObservationContext<IPluginConfig> obContext
public AbstractPluginDecorator(IPluginConfig upstream)
public String getName()
IPluginConfig
getName
in interface IPluginConfig
public IPluginConfig getPluginConfig(Object key)
IPluginConfig
getPluginConfig
in interface IPluginConfig
public Set<IPluginConfig> getPluginConfigSet()
IPluginConfig
getPluginConfigSet
in interface IPluginConfig
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
containsKey
in class AbstractMap<String,Object>
public String toString()
AbstractValueMap
String
representation of this object.toString
in class AbstractValueMap
String
representation of this ValueMap
consistent with
the tag-attribute style of markup elements. For example:
a="x" b="y" c="z"
.public boolean isImmutable()
isImmutable
in interface org.apache.wicket.util.value.IValueMap
isImmutable
in class AbstractValueMap
public org.apache.wicket.util.value.IValueMap makeImmutable()
makeImmutable
in interface org.apache.wicket.util.value.IValueMap
makeImmutable
in class AbstractValueMap
protected IPluginConfig wrapConfig(IPluginConfig config)
public boolean equals(Object o)
IObservable
equals
in interface Map<String,Object>
equals
in interface IObservable
equals
in class AbstractMap<String,Object>
public int hashCode()
hashCode
in interface Map<String,Object>
hashCode
in interface IObservable
hashCode
in class AbstractMap<String,Object>
IObservable.equals(Object)
public void setObservationContext(IObservationContext<? extends IObservable> context)
IObservable
setObservationContext
in interface IObservable
protected IObservationContext<? extends IPluginConfig> getObservationContext()
public void startObservation()
IObservable
IObserver
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.
startObservation
in interface IObservable
public void stopObservation()
IObservable
IObserver
unregisters, observation is stopped. Any listeners
or observers registered by the observable must be unregistered by the implementation.stopObservation
in interface IObservable
public double getDouble(String key) throws org.apache.wicket.util.string.StringValueConversionException
getDouble
in interface org.apache.wicket.util.value.IValueMap
getDouble
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDouble(String)
public double getDouble(String key, double defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getDouble
in interface org.apache.wicket.util.value.IValueMap
getDouble
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDouble(String, double)
public org.apache.wicket.util.time.Duration getDuration(String key) throws org.apache.wicket.util.string.StringValueConversionException
getDuration
in interface org.apache.wicket.util.value.IValueMap
getDuration
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDuration(String)
public org.apache.wicket.util.time.Time getTime(String key) throws org.apache.wicket.util.string.StringValueConversionException
getTime
in interface org.apache.wicket.util.value.IValueMap
getTime
in class AbstractValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getTime(String)
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.