Class TypeImpl
- java.lang.Object
-
- org.glassfish.hk2.configuration.hub.internal.TypeImpl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instance
getInstance(String key)
Gets the instance associated with this key, or null if there is noneMap<String,Instance>
getInstances()
Returns a read-only map of the instances that are associated with this typeObject
getMetadata()
Gets information about this type.String
getName()
A unique identifier for this typevoid
setMetadata(Object metadata)
Sets an object containing information about this type.String
toString()
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Type
A unique identifier for this type
-
getInstances
public Map<String,Instance> getInstances()
Description copied from interface:Type
Returns a read-only map of the instances that are associated with this type- Specified by:
getInstances
in interfaceType
- Returns:
- A read-only and possibly empty map of instances associated with this type
-
getInstance
public Instance getInstance(String key)
Description copied from interface:Type
Gets the instance associated with this key, or null if there is none- Specified by:
getInstance
in interfaceType
- Parameters:
key
- The non-null key for the instance- Returns:
- The resulting instance or null if there is none
-
getMetadata
public Object getMetadata()
Description copied from interface:Type
Gets information about this type. Can be used to describe the type in some useful way- Specified by:
getMetadata
in interfaceType
- Returns:
- The possibly null metadata associated with this type
-
setMetadata
public void setMetadata(Object metadata)
Description copied from interface:Type
Sets an object containing information about this type. Can be used to describe the type in some useful way- Specified by:
setMetadata
in interfaceType
- Parameters:
metadata
- The possibly null metadata to be associated with this type
-
-