Class CompositeBean<K,V extends BeanInstance<K>>
- java.lang.Object
-
- org.wildfly.clustering.ejb.cache.bean.CompositeImmutableBean<K,V>
-
- org.wildfly.clustering.ejb.cache.bean.CompositeBean<K,V>
-
- Type Parameters:
K- the bean identifier typeV- the bean instance type
- All Implemented Interfaces:
AutoCloseable,Bean<K,V>,ImmutableBean<K,V>,MutableBean<K,V>
public class CompositeBean<K,V extends BeanInstance<K>> extends CompositeImmutableBean<K,V> implements MutableBean<K,V>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CompositeBean(K id, BeanMetaData<K> metaData, BeanGroup<K,V> group, Remover<K> remover)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()BeanMetaData<K>getMetaData()booleanisValid()voidremove(Consumer<V> removeTask)voidsetInstance(V instance)Associates this bean with an instance.-
Methods inherited from class org.wildfly.clustering.ejb.cache.bean.CompositeImmutableBean
getId, getInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ejb.bean.ImmutableBean
getId, getInstance
-
-
-
-
Method Detail
-
getMetaData
public BeanMetaData<K> getMetaData()
- Specified by:
getMetaDatain interfaceBean<K,V extends BeanInstance<K>>- Specified by:
getMetaDatain interfaceImmutableBean<K,V extends BeanInstance<K>>- Overrides:
getMetaDatain classCompositeImmutableBean<K,V extends BeanInstance<K>>
-
setInstance
public void setInstance(V instance)
Description copied from interface:MutableBeanAssociates this bean with an instance.- Specified by:
setInstancein interfaceMutableBean<K,V extends BeanInstance<K>>
-
isValid
public boolean isValid()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBean<K,V extends BeanInstance<K>>
-
-