G - the group identifier typeI - the bean identifier typeT - the bean typepublic class InfinispanBeanFactory<I,T> extends Object implements BeanFactory<I,T>
| Constructor and Description |
|---|
InfinispanBeanFactory(String beanName,
BeanGroupFactory<I,T> groupFactory,
org.infinispan.Cache<BeanKey<I>,BeanEntry<I>> cache,
CacheProperties properties,
Time timeout,
PassivationListener<T> listener) |
| Modifier and Type | Method and Description |
|---|---|
Bean<I,T> |
createBean(I id,
BeanEntry<I> entry) |
BeanKey<I> |
createKey(I id) |
BeanEntry<I> |
createValue(I id,
I groupId)
Creates a value in the cache, if it does not already exist.
|
BeanEntry<I> |
findValue(I id)
Locates the value in the cache with the specified identifier.
|
void |
remove(I id,
RemoveListener<T> listener) |
BeanEntry<I> |
tryValue(I id)
Returns the value for the specified key, if possible.
|
public InfinispanBeanFactory(String beanName, BeanGroupFactory<I,T> groupFactory, org.infinispan.Cache<BeanKey<I>,BeanEntry<I>> cache, CacheProperties properties, Time timeout, PassivationListener<T> listener)
public Bean<I,T> createBean(I id, BeanEntry<I> entry)
createBean in interface BeanFactory<I,T>public BeanEntry<I> findValue(I id)
Locatorpublic BeanEntry<I> tryValue(I id)
Locatorpublic BeanEntry<I> createValue(I id, I groupId)
Creatorpublic void remove(I id, RemoveListener<T> listener)
remove in interface BeanRemover<I,T>Copyright © 2023 JBoss by Red Hat. All rights reserved.