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)
Locator
public BeanEntry<I> tryValue(I id)
Locator
public BeanEntry<I> createValue(I id, I groupId)
Creator
public void remove(I id, RemoveListener<T> listener)
remove
in interface BeanRemover<I,T>
Copyright © 2016 JBoss by Red Hat. All rights reserved.