Class TypeImpl
java.lang.Object
org.glassfish.hk2.configuration.hub.internal.TypeImpl
- All Implemented Interfaces:
Type
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ClassReflectionHelpergetInstance(String key) Gets the instance associated with this key, or null if there is noneReturns a read-only map of the instances that are associated with this typeGets information about this type.getName()A unique identifier for this typevoidsetMetadata(Object metadata) Sets an object containing information about this type.toString()
-
Field Details
-
name
-
instances
-
helper
-
metadata
-
-
Constructor Details
-
TypeImpl
TypeImpl(Type baseType, ClassReflectionHelper helper)
-
-
Method Details
-
getName
-
getInstances
-
getInstance
Description copied from interface:TypeGets the instance associated with this key, or null if there is none- Specified by:
getInstancein interfaceType- Parameters:
key- The non-null key for the instance- Returns:
- The resulting instance or null if there is none
-
getHelper
ClassReflectionHelper getHelper() -
getMetadata
Description copied from interface:TypeGets information about this type. Can be used to describe the type in some useful way- Specified by:
getMetadatain interfaceType- Returns:
- The possibly null metadata associated with this type
-
setMetadata
Description copied from interface:TypeSets an object containing information about this type. Can be used to describe the type in some useful way- Specified by:
setMetadatain interfaceType- Parameters:
metadata- The possibly null metadata to be associated with this type
-
toString
-