Package org.jboss.weld.resources
Class SharedObjectCache
- java.lang.Object
-
- org.jboss.weld.resources.SharedObjectCache
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.BootstrapService
,org.jboss.weld.bootstrap.api.Service
public class SharedObjectCache extends Object implements org.jboss.weld.bootstrap.api.BootstrapService
Allows classes to share Maps/Sets to conserve memory.- Author:
- Stuart Douglas
, Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description SharedObjectCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
cleanupAfterBoot()
<K,V>
Map<K,V>getSharedMap(Map<K,V> map)
<T> Set<T>
getSharedSet(Set<T> set)
LazyValueHolder<Set<Type>>
getTypeClosureHolder(Type type)
static SharedObjectCache
instance(BeanManagerImpl manager)
-
-
-
Method Detail
-
instance
public static SharedObjectCache instance(BeanManagerImpl manager)
-
getTypeClosureHolder
public LazyValueHolder<Set<Type>> getTypeClosureHolder(Type type)
-
cleanupAfterBoot
public void cleanupAfterBoot()
- Specified by:
cleanupAfterBoot
in interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
-
-