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 Details

    • SharedObjectCache

      public SharedObjectCache()
  • Method Details

    • instance

      public static SharedObjectCache instance(BeanManagerImpl manager)
    • getSharedSet

      public <T> Set<T> getSharedSet(Set<T> set)
    • getSharedMap

      public <K, V> Map<K,V> getSharedMap(Map<K,V> map)
    • getTypeClosureHolder

      public LazyValueHolder<Set<Type>> getTypeClosureHolder(Type type)
    • cleanupAfterBoot

      public void cleanupAfterBoot()
      Specified by:
      cleanupAfterBoot in interface org.jboss.weld.bootstrap.api.BootstrapService
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface org.jboss.weld.bootstrap.api.Service