java plugin: Add support for `match' callbacks.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 23 Feb 2009 17:59:04 +0000 (18:59 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 23 Feb 2009 17:59:04 +0000 (18:59 +0100)
commit636c770506ab2c0cd6c23f7bd357ac9113a01f44
treed08531db33c2903a24b837cb9c68f3809e1fdef3
parent6f521e7354231aa7cba61ea4066f2749aee6932a
java plugin: Add support for `match' callbacks.

Holy crap, that one needed some serious magic.. The problem is, that the
filter chains are created before the initialization functions are run.
Since the Java plugin used to initialize the JVM and load the classes in
the init function, the match callbacks were not available in time.

The behavior is now: Create the JVM as soon as the the first `LoadPlugin'
option is found and load and configure all Java plugins while in the
configuration phase. (I. e. exactly like C plugins.)

Phew, I've earned that beer now.
bindings/java/org/collectd/api/Collectd.java
bindings/java/org/collectd/api/CollectdMatchFactoryInterface.java [new file with mode: 0644]
bindings/java/org/collectd/api/CollectdMatchInterface.java [new file with mode: 0644]
src/java.c