Interface BeanGroup<K,V extends BeanInstance<K>>

Type Parameters:
K - the bean identifier type
V - the bean instance type
All Superinterfaces:
AutoCloseable, ImmutableBeanGroup<K,V>
All Known Subinterfaces:
MutableBeanGroup<K,V>
All Known Implementing Classes:
DefaultBeanGroup

public interface BeanGroup<K,V extends BeanInstance<K>> extends ImmutableBeanGroup<K,V>
Represents a group of SFSBs that must be serialized together.
Author:
Paul Ferraro
  • Method Details

    • addBeanInstance

      void addBeanInstance(V instance)
      Adds the specified bean instance to this group.
      Parameters:
      instance - a bean instance
    • removeBeanInstance

      V removeBeanInstance(K id)
      Removes the bean instance with the specified identifier from this group.
      Parameters:
      id - a bean instance identifier
      Returns:
      the removed bean instance, or null, if no such bean instance existed