Package gda.data

Class ObservablePathConstructor

All Implemented Interfaces:
ObservablePathProvider, Device, Configurable, Findable, gda.observable.IObservable, gda.observable.IObserver, org.springframework.beans.factory.InitializingBean

public class ObservablePathConstructor extends DeviceBase implements ObservablePathProvider, gda.observable.IObserver, org.springframework.beans.factory.InitializingBean
An ObservablePathProvider that when configured with a template of the form expected by PathConstructor creates a path using PathConstructor. A PathChanged event is sent to registered Observers when any MetadataEntry referenced by the template changes.
  • Constructor Details

    • ObservablePathConstructor

      public ObservablePathConstructor()
  • Method Details

    • getTemplate

      public String getTemplate()
    • setTemplate

      public void setTemplate(String template)
    • configure

      public void configure() throws FactoryException
      Description copied from class: ConfigurableBase
      Default implementation for classes that do not have to do any specific configuration.
      Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.
      Specified by:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • getPath

      public String getPath()
      Specified by:
      getPath in interface ObservablePathProvider
    • setGdaMetadata

      public void setGdaMetadata(GdaMetadata gdaMetadata)
    • getGdaMetadata

      public GdaMetadata getGdaMetadata()
    • getReferedMetadataEntries

      public List<IMetadataEntry> getReferedMetadataEntries()
    • update

      public void update(Object source, Object arg)
      Specified by:
      update in interface gda.observable.IObserver
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception