Interface Type
-
- All Known Subinterfaces:
WriteableType
- All Known Implementing Classes:
TypeImpl
,WriteableTypeImpl
public interface Type
A type contains (possibly) multiple instances of a configuration bean- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getName
String getName()
A unique identifier for this type- Returns:
- A unique identifier for this type (may not return null)
-
getInstances
Map<String,Instance> getInstances()
Returns a read-only map of the instances that are associated with this type- Returns:
- A read-only and possibly empty map of instances associated with this type
-
getInstance
Instance getInstance(String key)
Gets the instance associated with this key, or null if there is none- Parameters:
key
- The non-null key for the instance- Returns:
- The resulting instance or null if there is none
-
getMetadata
Object getMetadata()
Gets information about this type. Can be used to describe the type in some useful way- Returns:
- The possibly null metadata associated with this type
-
setMetadata
void setMetadata(Object metadata)
Sets an object containing information about this type. Can be used to describe the type in some useful way- Parameters:
metadata
- The possibly null metadata to be associated with this type
-
-