net.sf.tacos.model
Class IdentityKeyProvider

java.lang.Object
  extended by net.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)
          Gets the key for a particular 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)
Gets the key for a particular value

Specified by:
getKey in interface IKeyProvider
Returns:


Copyright © 2006-2007 SourceForge.net. All Rights Reserved.