E
- the PersistentEntity
the context was created forP
- the PersistentProperty
the PersistentEntity
consists ofpublic class MappingContextEvent<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>> extends ApplicationEvent
ApplicationEvent
refering to a PersistentEntity
.Constructor and Description |
---|
MappingContextEvent(MappingContext<?,?> source,
E entity)
|
Modifier and Type | Method and Description |
---|---|
E |
getPersistentEntity()
Returns the
PersistentEntity the event was created for. |
boolean |
wasEmittedBy(MappingContext<?,?> context)
Returns whether the
MappingContextEvent was triggered by the given MappingContext . |
getTimestamp
getSource, toString
public MappingContextEvent(MappingContext<?,?> source, E entity)
source
- must not be null.entity
- must not be null.public E getPersistentEntity()
PersistentEntity
the event was created for.public boolean wasEmittedBy(MappingContext<?,?> context)
MappingContextEvent
was triggered by the given MappingContext
.context
- the MappingContext
that potentially created the event.Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.