Interface CallbackRegistry

  • All Superinterfaces:
    All Known Subinterfaces:

    public interface CallbackRegistry
    Registry of Callbacks by entity and type
    • Method Detail

      • hasRegisteredCallbacks

        boolean hasRegisteredCallbacks​(java.lang.Class entityClass,
                                       CallbackType callbackType)
        Do we have any registered callbacks of the given type for the given entity?
        entityClass - The entity Class to check against
        callbackType - The type of callback to look for
        true indicates there are already registered callbacks of that type for that class; false indicates there are not.
      • preCreate

        void preCreate​(java.lang.Object entity)
      • postCreate

        void postCreate​(java.lang.Object entity)
      • preUpdate

        boolean preUpdate​(java.lang.Object entity)
      • postUpdate

        void postUpdate​(java.lang.Object entity)
      • preRemove

        void preRemove​(java.lang.Object entity)
      • postRemove

        void postRemove​(java.lang.Object entity)
      • postLoad

        boolean postLoad​(java.lang.Object entity)