Class 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:
  • Constructor Details

    • AbstractClusterDecorator

      public AbstractClusterDecorator(IClusterConfig upstream)
  • Method Details

    • getUpstream

      protected IClusterConfig getUpstream()
    • getPlugins

      public List<IPluginConfig> getPlugins()
      Description copied from interface: IClusterConfig
      The plugin configurations in the cluster. Returns an immutable list of plugins.
      Specified by:
      getPlugins in interface IClusterConfig
    • setPlugins

      public void setPlugins(List<IPluginConfig> plugins)
      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 interface IClusterConfig
    • getProperties

      public final List<String> 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 interface IClusterConfig
    • getReferences

      public final List<String> 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 interface IClusterConfig
    • getServices

      public final List<String> 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 an IRenderService.

      The returned list is only mutable when the configuration is used as a template.

      Specified by:
      getServices in interface IClusterConfig
    • getPropertyDescriptors

      public List<PropertyDescriptor> 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 interface IClusterConfig
    • getObservationContext

      protected IObservationContext<IClusterConfig> getObservationContext()
      Overrides:
      getObservationContext in class AbstractPluginDecorator
    • startObservation

      public void startObservation()
      Description copied from interface: IObservable
      When the first 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.

      Specified by:
      startObservation in interface IObservable
      Overrides:
      startObservation in class AbstractPluginDecorator
    • stopObservation

      public void stopObservation()
      Description copied from interface: IObservable
      When the last IObserver unregisters, observation is stopped. Any listeners or observers registered by the observable must be unregistered by the implementation.
      Specified by:
      stopObservation in interface IObservable
      Overrides:
      stopObservation in class AbstractPluginDecorator