Merge branch 'feature_enable_push_in_deployment_view' of https://github.com/bsinno/hawkbit/ into feature_enable_push_in_deployment_view

This commit is contained in:
Gaurav
2016-08-08 13:25:13 +02:00
2 changed files with 9 additions and 1 deletions

View File

@@ -13,7 +13,8 @@ import org.eclipse.persistence.descriptors.DescriptorEvent;
import org.eclipse.persistence.descriptors.DescriptorEventAdapter; import org.eclipse.persistence.descriptors.DescriptorEventAdapter;
/** /**
* Listens to change in property values of an entity. * Listens to change in property values of an entity and calls the corresponding
* {@link EventAwareEntity}.
* *
*/ */
public class EntityPropertyChangeListener extends DescriptorEventAdapter { public class EntityPropertyChangeListener extends DescriptorEventAdapter {

View File

@@ -10,22 +10,29 @@ package org.eclipse.hawkbit.repository.jpa.model;
import org.eclipse.persistence.descriptors.DescriptorEvent; import org.eclipse.persistence.descriptors.DescriptorEvent;
/**
* Interfaces which can be implemented by entities to be called when the entity
* should fire an event because the entity has been created, updated or deleted.
*/
public interface EventAwareEntity { public interface EventAwareEntity {
/** /**
* Fired for the Entity creation. * Fired for the Entity creation.
*
* @param descriptorEvent * @param descriptorEvent
*/ */
void fireCreateEvent(DescriptorEvent descriptorEvent); void fireCreateEvent(DescriptorEvent descriptorEvent);
/** /**
* Fired for the Entity updation. * Fired for the Entity updation.
*
* @param descriptorEvent * @param descriptorEvent
*/ */
void fireUpdateEvent(DescriptorEvent descriptorEvent); void fireUpdateEvent(DescriptorEvent descriptorEvent);
/** /**
* Fired for the Entity deletion. * Fired for the Entity deletion.
*
* @param descriptorEvent * @param descriptorEvent
*/ */
void fireDeleteEvent(DescriptorEvent descriptorEvent); void fireDeleteEvent(DescriptorEvent descriptorEvent);