Class OnCloseBean<K,V extends BeanInstance<K>>
java.lang.Object
org.wildfly.clustering.ejb.cache.bean.OnCloseBean<K,V>
- Type Parameters:
K- the bean identifier typeV- the bean instance type
- All Implemented Interfaces:
AutoCloseable,Bean<K,,V> ImmutableBean<K,V>
A bean decorator that executes a given task on close.
- Author:
- Paul Ferraro
-
Constructor Details
-
OnCloseBean
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceImmutableBean<K,V extends BeanInstance<K>>
-
getInstance
- Specified by:
getInstancein interfaceImmutableBean<K,V extends BeanInstance<K>>
-
getMetaData
- Specified by:
getMetaDatain interfaceBean<K,V extends BeanInstance<K>> - Specified by:
getMetaDatain interfaceImmutableBean<K,V extends BeanInstance<K>>
-
isValid
public boolean isValid() -
remove
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBean<K,V extends BeanInstance<K>>
-