Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataRegistryImpl
public DataRegistryImpl()
throws java.io.IOException
getDefaultRegistry
public static DataRegistry getDefaultRegistry()
setDefaultRegistry
public static void setDefaultRegistry(DataRegistry registry)
- Optional hook to call if you want to substitute a custom DataRegistry
implementation for the default one.
setRemoteRegistry
public void setRemoteRegistry(DataRegistry registry)
throws java.io.IOException
- Set a second DataRegistry source that will be used if the
type is not found locally. This will likely be on a remote
machine, hence the nomenclature.
getMetadata
public RecordDescriptor getMetadata(java.lang.String type)
throws java.io.IOException
- Description copied from interface:
DataRegistry
- get record Metadata for the type
- Specified by:
getMetadata
in interface DataRegistry
registerRecordType
public void registerRecordType(RecordDescriptor descriptor)
throws java.io.IOException
- Description copied from interface:
DataRegistry
- Register the metadata for a record type.
- Specified by:
registerRecordType
in interface DataRegistry
registerDataSource
public void registerDataSource(DataSource source)
throws java.io.IOException
- Description copied from interface:
DataRegistry
- register a DataSource by its unique name
- Specified by:
registerDataSource
in interface DataRegistry
registerDataSource
public void registerDataSource(DataSourceMetadata dsm)
throws java.io.IOException
- Description copied from interface:
DataRegistry
- register the metadata for a DataSource by its
unique name.
- Specified by:
registerDataSource
in interface DataRegistry
getDataSource
public DataSource getDataSource(java.lang.String name)
throws java.io.IOException
- Specified by:
getDataSource
in interface DataRegistry
- Following copied from interface:
com.revusky.oreo.DataRegistry
- Returns:
- a DataSource by its unique name
getExemplar
public Record getExemplar(java.lang.String type)
throws java.io.IOException
- Specified by:
getExemplar
in interface DataRegistry
- Following copied from interface:
com.revusky.oreo.DataRegistry
- Returns:
- a "virgin" record of the given type
getDataSourceNames
public java.util.List getDataSourceNames()
throws java.io.IOException
- Specified by:
getDataSourceNames
in interface DataRegistry
- Following copied from interface:
com.revusky.oreo.DataRegistry
- Returns:
- a List of the names of all of the
data sources that this data registry knows about.
getRecordNames
public java.util.List getRecordNames()
throws java.io.IOException
- Specified by:
getRecordNames
in interface DataRegistry
- Following copied from interface:
com.revusky.oreo.DataRegistry
- Returns:
- a List of the names of all of the
record types that this data registry knows about.
registerDataSourceAlias
public void registerDataSourceAlias(java.lang.String alias,
DataSourceMetadata dsm)
throws java.io.IOException
- Specified by:
registerDataSourceAlias
in interface DataRegistry