Class 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 Detail

      • SharedObjectCache

        public SharedObjectCache()
    • Method Detail

      • getSharedSet

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

        public <K,​V> Map<K,​V> getSharedMap​(Map<K,​V> map)
      • 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