title: Howto load different libraries based on incoming paramters?
body: <p>I am creating a java client using different libraries, they are the same base, but with different optimizations.</p>
  
  <p>Is there a pattern (or something else) that I can use to load different libraries, e.g.:</p>
  
  <p>java -jar myapp.jar 1 (loads with libraries from set 1 and imports correct and creates a client using this library)....</p>
  
  <p>Update:
  I have tried OSGI and it seems like it loads jars as services.
  I need a way to load very similar libraries upon startup an app.
  The library has exactly the same package/method names, but differ in some calculation. I need to have the exact same client to get realistic results. Thanks</p>