Support for Growl Notifications.
Uses HawtJNI to generate a native library to access Growl.
Updated to support Growling from AppleScript if the native library is not installed, else defaulting to a version that simply swallows notifications (for platforms w/o Growl support).
- Native Growl support using HawtJNI
- AppleScript Growl when JNA is not present
- Fallback to null implementation on unsupported platforms
import org.sonatype.grrrowl.Growler;
...
Growler growler = new Growler("My Application")
.add("Notification1", "Notification2")
.enableAll()
....
growler.growl("Notification1", "Title for Notification1", "Description for Notification1");
or using enums:
import org.sonatype.grrrowl.Growler;
enum Notifications {
Notification1,
Notification2
}
...
Growler growler = new Growler("My Application")
.add(Notifications.class)
.enableAll();
....
growler.growl(Notifications.Notification1, "Title for Notification1", "Description for Notification1");
Check-out and build:
git clone git://github.com/jdillon/grrrowl.git
cd grrrowl
mvn install