net.sf.tacos.model
Class IdentityKeyProvider

java.lang.Object
  extended bynet.sf.tacos.model.IdentityKeyProvider
All Implemented Interfaces:
IKeyProvider

public class IdentityKeyProvider
extends Object
implements IKeyProvider

Default IKeyProvider implementation that uses the object's identity hash. This only works if the object instances are the same across requests (ie. static).

Author:
phraktle

Constructor Summary
IdentityKeyProvider()
           
 
Method Summary
 Serializable getKey(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityKeyProvider

public IdentityKeyProvider()
Method Detail

getKey

public Serializable getKey(Object value)
Specified by:
getKey in interface IKeyProvider