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 -
Method Summary
Modifier and TypeMethodDescriptionGets the current database running in the systemCreates a writeable copy of the currently running database.
-
Constructor Details
-
HubImpl
public HubImpl()
-
-
Method Details
-
getCurrentDatabase
Description copied from interface:HubGets the current database running in the system- Specified by:
getCurrentDatabasein interfaceHub- Returns:
- The current database known to the Hub
-
getWriteableDatabaseCopy
Description copied from interface:HubCreates 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 theWriteableBeanDatabasewill become the current database. There is no requirement to eventually call theWriteableBeanDatabase.commit()method- Specified by:
getWriteableDatabaseCopyin interfaceHub- Returns:
- A writeable copy of the current database
-