org.springframework.data.mapping.event
Class MappingContextEvent<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.mapping.event.MappingContextEvent<E,P>
- Type Parameters:
E
- the PersistentEntity
the context was created forP
- the PersistentProperty
the PersistentEntity
consists of
- All Implemented Interfaces:
- Serializable
public class MappingContextEvent<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>>
- extends ApplicationEvent
Base implementation of an ApplicationEvent
refering to a PersistentEntity
.
- Author:
- Oliver Gierke, Jon Brisbin
- See Also:
- Serialized Form
MappingContextEvent
public MappingContextEvent(E source)
- Creates a new
MappingContextEvent
for the given PersistentEntity
.
- Parameters:
source
- must not be null.
getPersistentEntity
public E getPersistentEntity()
- Returns the
PersistentEntity
the event was created for.
- Returns:
Copyright © 2012. All Rights Reserved.