com.vicrab.event.helper.EventBuilderHelper Maven / Gradle / Ivy
package com.vicrab.event.helper;
import com.vicrab.event.EventBuilder;
/**
* Helper allowing to add extra information to the {@link EventBuilder} before creating the
* {@link com.vicrab.event.Event} itself.
*/
public interface EventBuilderHelper {
/**
* Adds extra elements to the {@link EventBuilder} before calling {@link EventBuilder#build()}.
*
* EventBuilderHelper are supposed to only add details to the Event before it's built. Calling the
* {@link EventBuilder#build()} method from the helper will prevent the event from being built properly.
*
* @param eventBuilder event builder to enhance before the event is built.
*/
void helpBuildingEvent(EventBuilder eventBuilder);
}