public interface WriteableType extends Type
Modifier and Type | Method and Description |
---|---|
Instance |
addInstance(String key,
Object bean)
Adds the instance with the given key to the type
|
Instance |
addInstance(String key,
Object bean,
Object metadata)
Adds the instance with the given key to the type
|
PropertyChangeEvent[] |
modifyInstance(String key,
Object newBean,
PropertyChangeEvent... changes)
Modifies the instance with the given key
|
Instance |
removeInstance(String key)
Removes the instance with the given key from the type
|
getInstance, getInstances, getMetadata, getName, setMetadata
Instance addInstance(String key, Object bean)
key
- A non-null name for this beanbean
- The non-null bean to addInstance addInstance(String key, Object bean, Object metadata)
key
- A non-null name for this beanbean
- The non-null bean to addmetadata
- Possibly null metadata to be associated with this beanInstance removeInstance(String key)
key
- A non-null name for this beanPropertyChangeEvent[] modifyInstance(String key, Object newBean, PropertyChangeEvent... changes)
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 modificationCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.