|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.registry.meta.RegistriesList
public class RegistriesList
A default implementation, providing a list of well-known BioMoby registries.
Please edit this file if you want to have your BioMoby registry visible to others (for example, in BioMoby Dashboard).
Or, you can also replace this implementation by your own, with your own list of registries.
Field Summary |
---|
Fields inherited from interface org.biomoby.registry.meta.Registries |
---|
DEFAULT_REGISTRY_SYNONYM |
Constructor Summary | |
---|---|
RegistriesList()
A default constructor. |
|
RegistriesList(Registry[] additionalRegistries)
A constructor that adds registries to the default list. |
Method Summary | |
---|---|
Registry |
get(String synonym)
Return an object with properties of a given BioMoby registry. |
Registry[] |
getAll()
Return properties of all known BioMoby registries. |
static Registries |
getInstance()
Create a list of registries as dynamically found using the SPI mechanim. |
String[] |
list()
Return a list of synonyms (abbreviations) of all known BioMoby registries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistriesList()
public RegistriesList(Registry[] additionalRegistries)
Method Detail |
---|
public static Registries getInstance()
Use this method if you want to add your own registry (or registries) without changing the existing jMoby Java code. This method is used by Dashboard - in its documenttaion is an example how to do it.
public String[] list()
Registries
default
synonym that represents a
default BioMoby registry.
The returned synonyms can be used in the get
method.
list
in interface Registries
public Registry get(String synonym) throws MobyException
Registries
get
in interface Registries
synonym
- is the name (abbreviation) of a BioMoby registry
whose properties shall be returned; it can be null - in which
case properties of a default BioMoby registry are returned
MobyException
- if the given 'synonym' does not represent
any known registrypublic Registry[] getAll()
Registries
getAll
in interface Registries
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |