com.googlecode.objectify.impl.load
Class CollisionDetectingSetter

java.lang.Object
  extended by com.googlecode.objectify.impl.load.Setter
      extended by com.googlecode.objectify.impl.load.CollisionDetectingSetter
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
EmbeddedClassSetter, EmbeddedMapSetter, EmbeddedMultivalueSetter, EmbeddedNullIndexSetter, LeafSetter

public abstract class CollisionDetectingSetter
extends Setter

Base for setters which perform rudimentary collision detection. This is how @AlsoLoad values avoid stepping on the normally loaded values.


Constructor Summary
CollisionDetectingSetter(java.util.Collection<java.lang.String> collisionPaths)
           
 
Method Summary
protected abstract  void safeSet(java.lang.Object toPojo, java.lang.Object value, LoadContext context)
          Just like set() but called after collision detection is performed.
 void set(java.lang.Object toPojo, java.lang.Object value, LoadContext context)
          Called by the Transmog to set a value on an object.
 
Methods inherited from class com.googlecode.objectify.impl.load.Setter
clone, extend, getNext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionDetectingSetter

public CollisionDetectingSetter(java.util.Collection<java.lang.String> collisionPaths)
Parameters:
collisionPaths - can be null
Method Detail

set

public final void set(java.lang.Object toPojo,
                      java.lang.Object value,
                      LoadContext context)
Description copied from class: Setter
Called by the Transmog to set a value on an object. Might actually delegate to some composite setter to actually set a value deep in the structure.

Specified by:
set in class Setter

safeSet

protected abstract void safeSet(java.lang.Object toPojo,
                                java.lang.Object value,
                                LoadContext context)
Just like set() but called after collision detection is performed.



Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1