@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()
Hub
getCurrentDatabase
in interface Hub
public WriteableBeanDatabase getWriteableDatabaseCopy()
Hub
WriteableBeanDatabase.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 Hub
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.