Broaddy is a lightweight library that allows the creation of small broadcast networks of objects.
It is a simple implementation of the Observer design pattern.
A BroadcastNetwork is a centralized network of Java POJOs that uses the Observer design pattern to send messages to its members.
A member of the BroadcastNetwork is called a NetworkPeer.
A NetworkPeer can subscribe to multiple BroadcastNetworks.
This library is hosted on https://jitpack.io.
The javadoc for this library is available here: javadoc
Enable the repository in your pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>Add this to your dependencies:
<dependency>
<groupId>com.github.alessandrofrenna</groupId>
<artifactId>broaddy</artifactId>
<version>1.0.2-SNAPSHOT</version>
</dependency>Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add this to your dependencies in build.gradle:
dependencies {
implementation 'com.github.alessandrofrenna:broaddy:1.0.2-SNAPSHOT'
}
This project is licensed under the Apache License v2.0.