I am creating an extensible java application using service providers concept. I have an abstract class named PoolTuningStrategy which is a service and USERS of my application provide their services in form of Service providers that extends this PoolTuningStrategy class and Users provide their implementations in form of jar files and my application uses ServiceLoader class to dynamically load the service providers as follows
int i=0;
for (PoolTuningStrategy foo : ServiceLoader.load(PoolTuningStrategy.class,urlloaders))
strategy[i++]=foo;
Now strategy[] contains all set of implementations. Now my question is “How I can make a C++ class that extends my Java abstract class PoolTuningStrategy so that I can make use of C++ service providers.” Actually I want my application to be extended by Java and C++ programmers. I have done it using Java only but I don’t know how I can extend my Java application by having C++ implementations .