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
ConstructorsConstructorDescriptionCompositeBean(K id, BeanMetaData<K> metaData, BeanGroup<K, V> group, org.wildfly.clustering.cache.CacheEntryRemover<K> remover) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisValid()voidvoidsetInstance(V instance) Associates this bean with an instance.Methods inherited from class org.wildfly.clustering.ejb.cache.bean.CompositeImmutableBean
getId, getInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.ejb.bean.ImmutableBean
getId, getInstance
-
Constructor Details
-
CompositeBean
-
-
Method Details
-
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
Description copied from interface:MutableBeanAssociates this bean with an instance.- Specified by:
setInstancein interfaceMutableBean<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>>
-