public interface IHdfIORegistry
This interface provides a registry for IHdfIOFactory
instances
provided as OSGi Declarative Services. This interface can similarly be
referenced via OSGi.
The purpose of this class is to enable other bundles to create their own factories for writing to/reading from HDF5 files. These other bundles register their factories with the registry so that UI bundles can request said factories to write or read supported objects.
See HdfIORegistry
for a basic implementation of this interface.
Modifier and Type | Method and Description |
---|---|
IHdfIOFactory |
getHdfIOFactory(java.lang.Object object)
Gets an
IHdfIOFactory from the registry. |
IHdfIOFactory |
getHdfIOFactory(java.lang.String tag)
Gets an
IHdfIOFactory from the registry. |
void |
registerHdfIOFactory(IHdfIOFactory factory)
Registers an
IHdfIOFactory with the registry. |
void registerHdfIOFactory(IHdfIOFactory factory)
IHdfIOFactory
with the registry. Only non-null
factories can be registered. If two factories share the same supported
classes, only the most recently registered factory will be associated
with those classes.factory
- The IHdfIOFactory to add to the registry.IHdfIOFactory getHdfIOFactory(java.lang.Object object)
Gets an IHdfIOFactory
from the registry. This factory supports
writing and reading for the specified class.
This method is typically used for writing an object.
object
- The object that needs to be written to or read from a file.IHdfIOFactory getHdfIOFactory(java.lang.String tag)
Gets an IHdfIOFactory
from the registry. Instead of using a class
as a key, this uses a String tag read from a file.
This method is typically used for reading an object.
tag
- The tag used to associated an object from a file with an
IHdfIOFactory.