Package gda.data
Class ObservablePathConstructor
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.data.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.-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidDefault 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.getPath()voidsetGdaMetadata(GdaMetadata gdaMetadata) voidsetTemplate(String template) voidMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigured, reconfigureMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
ObservablePathConstructor
public ObservablePathConstructor()
-
-
Method Details
-
getTemplate
-
setTemplate
-
configure
Description copied from class:ConfigurableBaseDefault 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:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
getPath
- Specified by:
getPathin interfaceObservablePathProvider
-
setGdaMetadata
-
getGdaMetadata
-
getReferedMetadataEntries
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-