diff --git a/pom.xml b/pom.xml
index 1d99474..4078117 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
+ * A singleton instance of this class can be lazily created and acquired using the + * {@link EventBus#getInstance()} method. + *
* This is a thread-safe implementation.
*
* @author Kai S. K. Engelbart
@@ -14,6 +17,20 @@ import java.util.concurrent.ConcurrentHashMap;
*/
public final class EventBus {
+ private static EventBus singletonInstance;
+
+ /**
+ * Produces a singleton instance of the event bus. It is lazily initialized on the first call.
+ *
+ * @return a singleton instance of the event bus.
+ * @since 0.0.2
+ */
+ public static EventBus getInstance() {
+ if (singletonInstance == null)
+ singletonInstance = new EventBus();
+ return singletonInstance;
+ }
+
private final Map