X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Fjava%2Forg%2Fcollectd%2Fapi%2FCollectdMatchFactoryInterface.java;h=7b1c71a470d4f441a68a69c9fb5740ab9c1addb6;hb=3f0d178e58251171272a643e1667abcb9946edce;hp=24cab5989d5b279f20194ca334d1e87018fde310;hpb=636c770506ab2c0cd6c23f7bd357ac9113a01f44;p=collectd.git diff --git a/bindings/java/org/collectd/api/CollectdMatchFactoryInterface.java b/bindings/java/org/collectd/api/CollectdMatchFactoryInterface.java index 24cab598..7b1c71a4 100644 --- a/bindings/java/org/collectd/api/CollectdMatchFactoryInterface.java +++ b/bindings/java/org/collectd/api/CollectdMatchFactoryInterface.java @@ -22,7 +22,7 @@ package org.collectd.api; /** - * Interface for objects implementing a match factory. + * Interface for objects implementing a "match factory". * * Objects implementing this interface are used to create objects implementing * the CollectdMatchInterface interface. @@ -33,5 +33,17 @@ package org.collectd.api; */ public interface CollectdMatchFactoryInterface { + /** + * Create a new "match" object. + * + * This method uses the configuration provided as argument to create a + * new object which must implement the {@link CollectdMatchInterface} + * interface. + * + * This function corresponds to the create member of the + * src/filter_chain.h:match_proc_t struct. + * + * @return New {@link CollectdMatchInterface} object. + */ public CollectdMatchInterface createMatch (OConfigItem ci); }