Interface BeanRemover<K,V>
-
- All Known Subinterfaces:
BeanFactory<I,T>
- All Known Implementing Classes:
ExpiredBeanRemover,InfinispanBeanFactory
public interface BeanRemover<K,V>Exposes a mechanism to remove a bean.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanremove(K id, RemoveListener<V> listener)Removes the specified bean, triggering the specified listener
-
-
-
Method Detail
-
remove
boolean remove(K id, RemoveListener<V> listener)
Removes the specified bean, triggering the specified listener- Parameters:
id- a bean identifierlistener- a removal listener- Returns:
- true, if the bean was (or was already) removed, false otherwise
-
-