Interface Hub
- All Known Implementing Classes:
HubImpl
The central repository of configuration objects in the system.
Configuration objects are organized by type, and within
that type keyed instances of the configuration object.
A configuration object can be a java bean following the java bean standard. A configuration object can also be a bean-like Map, which is a Map<String,Object> that has as keys the names of the properties and as values value that property should take
-
Method Summary
Modifier and TypeMethodDescriptionGets the current database running in the systemCreates a writeable copy of the currently running database.
-
Method Details
-
getCurrentDatabase
BeanDatabase getCurrentDatabase()Gets the current database running in the system- Returns:
- The current database known to the Hub
-
getWriteableDatabaseCopy
WriteableBeanDatabase getWriteableDatabaseCopy()Creates a writeable copy of the currently running database. If theWriteableBeanDatabase.commit()
method is called (and no otherWriteableBeanDatabase.commit()
method has been called) then a read-only copye of theWriteableBeanDatabase
will become the current database. There is no requirement to eventually call theWriteableBeanDatabase.commit()
method- Returns:
- A writeable copy of the current database
-