org.jboss.weld.resources
Class SharedObjectCache

java.lang.Object
  extended by org.jboss.weld.resources.SharedObjectCache
All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service

public class SharedObjectCache
extends Object
implements org.jboss.weld.bootstrap.api.Service

Allows classes to share Maps/Sets to conserve memory.

Author:
Stuart Douglas

Constructor Summary
SharedObjectCache()
           
 
Method Summary
 void cleanup()
           
 Type getResolvedType(Type type)
           
<K,V> Map<K,V>
getSharedMap(Map<K,V> map)
           
<K,V> ArraySetMultimap<K,V>
getSharedMultimap(ArraySetMultimap<K,V> map)
           
<T> Set<T>
getSharedSet(Set<T> set)
           
 Set<Type> getTypeClosure(Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

getSharedMultimap

public <K,V> ArraySetMultimap<K,V> getSharedMultimap(ArraySetMultimap<K,V> map)

getTypeClosure

public Set<Type> getTypeClosure(Type type)

getResolvedType

public Type getResolvedType(Type type)

cleanup

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


Copyright © 2013 Seam Framework. All Rights Reserved.