A helper library to unify and centralize events and eventlisteners in java. Inspired by the Cocoa NSNotificationCenter.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
net/norocketlab/notificationcenter/java
.gitignore
LICENSE
README.md

README.md

java-notificationcenter

A helper library to unify and centralize events and eventlisteners in java. Inspired by the Cocoa NSNotificationCenter.

NotificationCenter nc = NotificationCenter.defaultCenter();
nc.addListener(new NotificationListener<SomeNotification>(SomeNotification.class) {
		@Override
		public void onNotification(SomeNotification notification) {				
		}
});
nc.postNotification(new SomeNotification(null, 0, 0));