@Service @ContractsProvided(value=Hub.class) @Visibility(value=LOCAL) public class HubImpl extends Object implements Hub
| Constructor and Description |
|---|
HubImpl() |
| Modifier and Type | Method and Description |
|---|---|
BeanDatabase |
getCurrentDatabase()
Gets the current database running in the system
|
WriteableBeanDatabase |
getWriteableDatabaseCopy()
Creates a writeable copy of the currently running
database.
|
public BeanDatabase getCurrentDatabase()
HubgetCurrentDatabase in interface Hubpublic WriteableBeanDatabase getWriteableDatabaseCopy()
HubWriteableBeanDatabase.commit()
method is called (and no other WriteableBeanDatabase.commit()
method has been called) then a read-only copye of the
WriteableBeanDatabase will become the current database.
There is no requirement to eventually call the
WriteableBeanDatabase.commit() methodgetWriteableDatabaseCopy in interface HubCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.