title: How to access configurations specified in XML of a jetty server from code
body: <p>I've a jetty Server, what I want to configure for HTTPS traffic, I could do this, just simply modified some XML, and ini files (since this IoC is the preferred way), however I would like to access to some of these things which were configured in the xml from other classes, this is in the xml:</p>
  
  <pre><code>&lt;Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory"&gt;
    &lt;Set name="KeyStoreType"&gt;PKCS12&lt;/Set&gt;
    &lt;Set name="KeyStorePath"&gt;&lt;Property name="jetty.base" default="." /&gt;/&lt;Property name="jetty.keystore" default="etc/keystore"/&gt;&lt;/Set&gt;
    &lt;Set name="KeyStorePassword"&gt;&lt;Property name="jetty.keystore.password" default="OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4"/&gt;&lt;/Set&gt;
  ...
  </code></pre>
  
  <p>What I want is to call the sslContextFactory.getKeyStorePath() function somewhere in my codebase. But where is this sslContextFactory instance, where can I find it, how can I have a reference to it? </p>