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 <stuart@baileyroberts.com.au>, Jozef Hartinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()void<K,V> Map<K, V> getSharedMap(Map<K, V> map) <T> Set<T>getSharedSet(Set<T> set) getTypeClosureHolder(Type type) static SharedObjectCacheinstance(BeanManagerImpl manager)
-
Constructor Details
-
SharedObjectCache
public SharedObjectCache()
-
-
Method Details
-
instance
-
getTypeClosureHolder
-
cleanupAfterBoot
public void cleanupAfterBoot()- Specified by:
cleanupAfterBootin interfaceorg.jboss.weld.bootstrap.api.BootstrapService
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-