Interface WriteableType
- All Superinterfaces:
Type
- All Known Implementing Classes:
WriteableTypeImpl
-
Method Summary
Modifier and TypeMethodDescriptionaddInstance(String key, Object bean) Adds the instance with the given key to the typeaddInstance(String key, Object bean, Object metadata) Adds the instance with the given key to the typemodifyInstance(String key, Object newBean, PropertyChangeEvent... changes) Modifies the instance with the given keyremoveInstance(String key) Removes the instance with the given key from the typeMethods inherited from interface Type
getInstance, getInstances, getMetadata, getName, setMetadata
-
Method Details
-
addInstance
-
addInstance
-
removeInstance
-
modifyInstance
Modifies the instance with the given key- Parameters:
key- A non-null name or key for the bean to modifynewBean- The new bean to use with this keychanges- The full set of changes from the previous version. If this is a zero-length array then the system will attempt to automatically determine the changes made to this type and will generate the list of PropertyChangeEvent to be associated with this modification- Returns:
- If changes has length greater than zero then this simply returns changes. If changes is zero length then this will return the set of changes automatically determined by the system
-