Class HubImpl
- java.lang.Object
-
- org.glassfish.hk2.configuration.hub.internal.HubImpl
-
- All Implemented Interfaces:
Hub
@Service @ContractsProvided(Hub.class) @Visibility(LOCAL) public class HubImpl extends Object implements Hub
- Author:
- jwells
-
-
Constructor Summary
Constructors Constructor Description HubImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDatabase
getCurrentDatabase()
Gets the current database running in the systemWriteableBeanDatabase
getWriteableDatabaseCopy()
Creates a writeable copy of the currently running database.
-
-
-
Method Detail
-
getCurrentDatabase
public BeanDatabase getCurrentDatabase()
Description copied from interface:Hub
Gets the current database running in the system- Specified by:
getCurrentDatabase
in interfaceHub
- Returns:
- The current database known to the Hub
-
getWriteableDatabaseCopy
public WriteableBeanDatabase getWriteableDatabaseCopy()
Description copied from interface:Hub
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- Specified by:
getWriteableDatabaseCopy
in interfaceHub
- Returns:
- A writeable copy of the current database
-
-