Interface WriteableType

All Superinterfaces:
Type
All Known Implementing Classes:
WriteableTypeImpl

public interface WriteableType extends Type
  • Method Details

    • addInstance

      Instance addInstance(String key, Object bean)
      Adds the instance with the given key to the type
      Parameters:
      key - A non-null name for this bean
      bean - The non-null bean to add
      Returns:
      The instance that was created
    • addInstance

      Instance addInstance(String key, Object bean, Object metadata)
      Adds the instance with the given key to the type
      Parameters:
      key - A non-null name for this bean
      bean - The non-null bean to add
      metadata - Possibly null metadata to be associated with this bean
      Returns:
      The instance that was created
    • removeInstance

      Instance removeInstance(String key)
      Removes the instance with the given key from the type
      Parameters:
      key - A non-null name for this bean
      Returns:
      The possibly null bean that was removed. If null then no bean was found with the given name
    • modifyInstance

      PropertyChangeEvent[] modifyInstance(String key, Object newBean, PropertyChangeEvent... changes)
      Modifies the instance with the given key
      Parameters:
      key - A non-null name or key for the bean to modify
      newBean - The new bean to use with this key
      changes - 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