https://code.google.com/p/spi/
^^ defines an annotation and processor for helping with services in the
JDK ServiceLoader sense.
For example, if you wanted to implement Integrator:
@ProviderFor(Integrator.class)
public void class MyIntegrator implements Integrator {
...
}
The AP then:
1) validates your defined services (not really sure what this means
behind making sure you define a no-arg ctor).
2) manages your
META-INF/services/org.hibernate.integrator.spi.Integrator file for you
Just wanted to see what y'all thought of including this for building.
It is not a runtime dependency at all! More I am just wondering if
y'all thought this made it easier/better to manage the META-INF/services
provider file.
--
steve(a)hibernate.org
http://hibernate.org