public class StandardInstrumentRegistry.Facade extends Object implements IInstrumentRegistry
| Constructor and Description |
|---|
StandardInstrumentRegistry.Facade() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(EventType type,
INotificationListener listener)
Add
listener to the collection of objects to be informed
when the receiver triggers an event of type name. |
IInstrument |
createInstrument(String id,
IInstrumentStore store) |
Object |
getAttribute(Object key)
Get an attribute value from the context
|
IExtensionPoint[] |
getExtensionPoints() |
IInstrument[] |
getInstruments()
A collection of all IInstrument instances registered.
|
void |
load(IInstrumentStore store) |
IExtensionPoint |
lookupExtensionPoint(String name) |
IInstrument |
lookupInstrument(String name)
Lookup the instrument with the id "name".
|
void |
registerInstrument(IInstrument instrument)
Register a new instrument in the registry.
|
Object |
removeAttribute(Object key)
Remove an attribute binding in the context
|
void |
removeNotificationListener(EventType type,
INotificationListener listener)
Remove
listener from the collection of objects to be
informed about events of type name. |
Object |
setAttribute(Object key,
Object value)
Set the value of an attribute in the context
|
void |
unregisterInstrument(IInstrument instrument)
Unregister an instrument from the registry.
|
public void addNotificationListener(EventType type, INotificationListener listener)
INotificationSupportlistener to the collection of objects to be informed
when the receiver triggers an event of type name.addNotificationListener in interface INotificationSupporttype - The event type we are interested in.listener - The object to be informed about an event occurrencepublic IInstrument createInstrument(String id, IInstrumentStore store)
createInstrument in interface IInstrumentRegistrypublic Object getAttribute(Object key)
IAttributeSupportgetAttribute in interface IAttributeSupportkey - the name of the attribute to getkeypublic IExtensionPoint[] getExtensionPoints()
getExtensionPoints in interface IInstrumentRegistrypublic IInstrument[] getInstruments()
IInstrumentRegistryYou can not modify the result of this request.
getInstruments in interface IInstrumentRegistrypublic void load(IInstrumentStore store) throws InstrumentRegistryException
load in interface IInstrumentRegistryInstrumentRegistryExceptionpublic IExtensionPoint lookupExtensionPoint(String name)
lookupExtensionPoint in interface IInstrumentRegistrypublic IInstrument lookupInstrument(String name)
IInstrumentRegistrylookupInstrument in interface IInstrumentRegistryname - The name of the instrument to look up.public void registerInstrument(IInstrument instrument) throws InstrumentRegistryException
IInstrumentRegistryregisterInstrument in interface IInstrumentRegistryinstrument - The new instrument instance.InstrumentRegistryExceptionpublic Object removeAttribute(Object key)
IAttributeSupportremoveAttribute in interface IAttributeSupportkey - the name of the attribute to removekeypublic void removeNotificationListener(EventType type, INotificationListener listener)
INotificationSupportlistener from the collection of objects to be
informed about events of type name.removeNotificationListener in interface INotificationSupporttype - The event type we are no longer interested in.listener - The object registered for the event till now.public Object setAttribute(Object key, Object value)
IAttributeSupportsetAttribute in interface IAttributeSupportkey - the name of the attribute to setvalue - the new value the attributekeypublic void unregisterInstrument(IInstrument instrument) throws InstrumentRegistryException
IInstrumentRegistryunregisterInstrument in interface IInstrumentRegistryinstrument - The instrument to be unregisteredInstrumentRegistryExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.