Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Growl for Java

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 README.md
Octocat-spinner-32 pom.xml
README.md

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
Something went wrong with that request. Please try again.