Merge pull request #89 from informatik-ag-ngl/f/messagee_event

Moved MessageEvent back from envoy-common.
This commit is contained in:
Kai S. K. Engelbart 2020-01-06 18:16:02 +01:00 committed by GitHub
commit c32b7caf79
3 changed files with 31 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package envoy.client.event; package envoy.client.event;
import envoy.data.Message; import envoy.data.Message;
import envoy.event.MessageEvent;
/** /**
* Project: <strong>envoy-client</strong><br> * Project: <strong>envoy-client</strong><br>

View File

@ -0,0 +1,31 @@
package envoy.client.event;
import envoy.data.Message;
import envoy.event.Event;
/**
* Project: <strong>envoy-client</strong><br>
* File: <strong>MessageCreationEvent.java</strong><br>
* Created: <strong>4 Dec 2019</strong><br>
*
* @author Kai S. K. Engelbart
*/
public class MessageEvent implements Event<Message> {
/**
* the {@link Message} attached to this {@link MessageEvent}.
*/
protected final Message message;
/**
* Initializes a {@link MessageEvent} conveying information about a
* {@link Message} object.
*
* @param message the {@link Message} object to attach to this event
* @since Envoy v0.2-alpha
*/
public MessageEvent(Message message) { this.message = message; }
@Override
public Message get() { return message; }
}

View File

@ -1,7 +1,6 @@
package envoy.client.event; package envoy.client.event;
import envoy.data.Message; import envoy.data.Message;
import envoy.event.MessageEvent;
/** /**
* Project: <strong>envoy-client</strong><br> * Project: <strong>envoy-client</strong><br>