| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jplate.foundation.util.impl.SynchronizedHashMapFactory<K,V>
K - The key type stored in HashMap.V - The value type stored in HashMap.public final class SynchronizedHashMapFactory<K,V>
Factory that creates synchronized Map's backed by
    HashMap's.
    
Foo and value
    Bar, perform the following:
    
final SynchronizedHashMapFactory <Foo, Bar> factory =
    new SynchronizedHashMapFactory <Foo, Bar> ();
final Map sMap <Foo, Bar> = factory.create ();
    
    
Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/util/impl/SynchronizedHashMapFactory.java $
    
HashMap, 
Map, 
Serialized Form| Field Summary | |
|---|---|
private  org.apache.commons.logging.Log | 
_log
Used for logging.  | 
private static long | 
serialVersionUID
For serialization purposes.  | 
| Constructor Summary | |
|---|---|
SynchronizedHashMapFactory()
Default constructor.  | 
|
| Method Summary | |
|---|---|
 java.util.Map<K,V> | 
create()
Creates and returns a synchronized Map backed by a
 HashMap. | 
 void | 
destroy(java.util.Map<K,V> map)
Cleanup a previsously instantiated Map. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static final long serialVersionUID
private final transient org.apache.commons.logging.Log _log
| Constructor Detail | 
|---|
public SynchronizedHashMapFactory()
| Method Detail | 
|---|
public java.util.Map<K,V> create()
Map backed by a
 HashMap.
create in interface FactoryIfc<java.util.Map<K,V>>Map backed by a
 HashMapCollections.synchronizedMap(java.util.Map) , 
HashMap, 
Mappublic void destroy(java.util.Map<K,V> map)
Map.  Assuming
 map is not null, the clear method
 will be called.
destroy in interface FactoryIfc<java.util.Map<K,V>>map - The object to clean up.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||