Class OnCloseBean<K,​V extends BeanInstance<K>>

  • Type Parameters:
    K - the bean identifier type
    V - the bean instance type
    All Implemented Interfaces:
    AutoCloseable, Bean<K,​V>, ImmutableBean<K,​V>

    public class OnCloseBean<K,​V extends BeanInstance<K>>
    extends Object
    implements Bean<K,​V>
    A bean decorator that executes a given task on close.
    Author:
    Paul Ferraro