org.hibersap.conversion
Class ConverterCache

java.lang.Object
  extended by org.hibersap.conversion.ConverterCache

public class ConverterCache
extends Object

Holds instances of implementations of org.hibersap.conversion.Converter. The instances are created lazily.

Author:
Carsten Erker

Constructor Summary
ConverterCache()
           
 
Method Summary
 void clear()
           
 boolean equals(Object obj)
           
 Converter getConverter(Class<? extends Converter> clazz)
          Called by the framework to get a Converter instance.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConverterCache

public ConverterCache()
Method Detail

getConverter

public Converter getConverter(Class<? extends Converter> clazz)
Called by the framework to get a Converter instance. If not yet in the cache, the instance will be created lazily.

Parameters:
clazz - The Coverter implementation class
Returns:
The Converter instance

clear

public void clear()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 akquinet tech@spree GmbH. All Rights Reserved.