Class BeanDatabaseImpl
java.lang.Object
org.glassfish.hk2.configuration.hub.internal.BeanDatabaseImpl
- All Implemented Interfaces:
BeanDatabase
- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptionvoidDumps the type and instance names to stderrvoiddumpDatabase(PrintStream output) Dumps the type and instance names to the given streamDumps the type and instance names to a String for debuggingGets an unmodifiable set of all the types in the bean databasegetInstance(String type, String instanceKey) Returns the instance with the given instanceKey from the type with the given nameGets the type with the given nametoString()
-
Method Details
-
getAllTypes
Description copied from interface:BeanDatabaseGets an unmodifiable set of all the types in the bean database- Specified by:
getAllTypesin interfaceBeanDatabase- Returns:
- A non-null unmodifiable and possibly empty set of all the types in the database
-
getInstance
Description copied from interface:BeanDatabaseReturns the instance with the given instanceKey from the type with the given name- Specified by:
getInstancein interfaceBeanDatabase- Parameters:
type- The non-null name of the type to get the instance frominstanceKey- The non-null key of the instance- Returns:
- The bean from the given type with the given name. Will return null if the type does not exist or an instance with that key does not exist
-
getType
Description copied from interface:BeanDatabaseGets the type with the given name- Specified by:
getTypein interfaceBeanDatabase- Parameters:
type- The non-null name- Returns:
- The type corresponding to the given name. May return null
-
dumpDatabase
public void dumpDatabase()Description copied from interface:BeanDatabaseDumps the type and instance names to stderr- Specified by:
dumpDatabasein interfaceBeanDatabase
-
dumpDatabase
Description copied from interface:BeanDatabaseDumps the type and instance names to the given stream- Specified by:
dumpDatabasein interfaceBeanDatabase- Parameters:
output- - The non-null outut stream to write the database to
-
dumpDatabaseAsString
Description copied from interface:BeanDatabaseDumps the type and instance names to a String for debugging- Specified by:
dumpDatabaseAsStringin interfaceBeanDatabase- Returns:
- A string with all type and instance names
-
toString
-