aboutsummaryrefslogtreecommitdiff
path: root/bindings/java/src/c/com_galois_ppaml_tracer_Tracer.c
Commit message (Collapse)AuthorAge
* Java: Add 'EnvironmentConfiguredTracer'Gravatar Benjamin Barenblat2014-02-06
| | | | | | | | | | | | | | Adding 'ppaml_tracer_init_from_env' (commit b9dfb8d0) makes the Java code substantially more complicated, as it introduces a second mechanism to construct 'Tracer's. While I could simply provide two constructors in the 'Tracer' class, this would make for an ugly and dangerous implementation; after all, the life cycle of a tracer configured explicitly is noticeably different from the life cycle of a tracer configured by sourcing environment variables. Instead, I’ve changed 'Tracer' to be an interface implemented by 'ExplicitlyConfiguredTracer' and 'EnvironmentConfiguredTracer'. This is an API-breaking change.
* Initial commitGravatar Benjamin Barenblat2014-01-13