Spring Data MongoDB

org.springframework.data.mongodb.core.mapping.event
Class AfterLoadEvent<T>

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<com.mongodb.DBObject>
              extended by org.springframework.data.mongodb.core.mapping.event.AfterLoadEvent<T>
All Implemented Interfaces:
Serializable

public class AfterLoadEvent<T>
extends MongoMappingEvent<com.mongodb.DBObject>

Event to be triggered after loading DBObjects to be mapped onto a given type.

Author:
Oliver Gierke, Jon Brisbin, Christoph Leiter
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AfterLoadEvent(com.mongodb.DBObject dbo, Class<T> type)
          Creates a new AfterLoadEvent for the given DBObject and type.
 
Method Summary
 Class<T> getType()
          Returns the type for which the AfterLoadEvent shall be invoked for.
 
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getDBObject, getSource
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AfterLoadEvent

public AfterLoadEvent(com.mongodb.DBObject dbo,
                      Class<T> type)
Creates a new AfterLoadEvent for the given DBObject and type.

Parameters:
dbo - must not be null.
type - must not be null.
Method Detail

getType

public Class<T> getType()
Returns the type for which the AfterLoadEvent shall be invoked for.

Returns:

Spring Data MongoDB

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.