JAlarms plugin for Grails

  • Tags : /
  • Latest : 0.3
  • Last Updated: 24 June 2011
  • Grails version : 1.3.5 > *
  • Authors : Enrique Zamudio, Hector Cuesta, Andres Almiray
0 vote
Dependency :
compile ":jalarms:0.3"

Documentation

Summary

Description

Description

Send application notifications using a wide range of protocols via JAlarms.

Usage

This plugin adds a bean alarmer of type com.solab.alarms.AlarmSender to the application's ApplicationContext. Alarm channels can be configured as any other beans would, inside the src/spring/resources.groovy file.

It will also inject the following dynamic methods to controllers and services by default:

  • sendAlarm(String msg) - sends an alarm to all configured channels
  • sendAlarm(String msg, String source) - sends an alarm to all configured channels that have source configured

Configuration

Dynamic method injection

Dynamic methods will be added to controllers and services by default. You can change this setting by adding a configuration flag in the Config.groovy file.

grails.jalarms.injectInto = ["Controller", "Service", "Routes"]