java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
app.valuationcontrol.multimodule.library.entities.Event<T>
All Implemented Interfaces:
Serializable, org.springframework.core.ResolvableTypeProvider

public class Event<T> extends org.springframework.context.ApplicationEvent implements org.springframework.core.ResolvableTypeProvider
See Also:
  • Constructor Details

  • Method Details

    • getOldVersion

      public T getOldVersion()
    • getNewVersion

      public T getNewVersion()
    • getResolvableType

      public org.springframework.core.ResolvableType getResolvableType()
      Specified by:
      getResolvableType in interface org.springframework.core.ResolvableTypeProvider
    • getParameterClass

      public String getParameterClass()
    • getType

      public Event.EVENT_TYPE getType()
    • effectedEntity

      public T effectedEntity()
    • isCreate

      public boolean isCreate()
    • isUpdate

      public boolean isUpdate()
    • isMetadataUpdate

      public boolean isMetadataUpdate()
    • isDelete

      public boolean isDelete()
    • created

      public static <M> Event<M> created(Object source, M created, Principal principal, Class<?> parameterClass, Model model)
    • updated

      public static <M> Event<M> updated(Object source, M old, M updated, Principal principal, Class<?> parameterClass, Model model)
    • lightUpdated

      public static <M> Event<M> lightUpdated(Object source, M updated, Principal principal, Class<?> parameterClass, Model model)
    • deleted

      public static <M> Event<M> deleted(Object source, M old, Principal principal, Class<?> parameterClass, Model model)