Skip to content

jdillon/grrrowl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 

Repository files navigation

DepShield Badge

Description

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).

License

Apache 2.0

Features

  • Native Growl support using HawtJNI
  • AppleScript Growl when JNA is not present
  • Fallback to null implementation on unsupported platforms

Example Usage

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");

Building

Requirements

Check-out and build:

git clone git://github.com/jdillon/grrrowl.git
cd grrrowl
mvn install