Java Code Examples for sun.misc.Service#installedProviders()
The following examples show how to use
sun.misc.Service#installedProviders() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScriptEngineManager.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
private void initEngines(ClassLoader loader) { Iterator itr = null; try { if (loader != null) { itr = Service.providers(ScriptEngineFactory.class, loader); } else { itr = Service.installedProviders(ScriptEngineFactory.class); } } catch (ServiceConfigurationError var4) { System.err.println("Can't find ScriptEngineFactory providers: " + var4.getMessage()); if (DEBUG) { var4.printStackTrace(); } return; } try { while(itr.hasNext()) { try { ScriptEngineFactory fact = (ScriptEngineFactory)itr.next(); this.engineSpis.add(fact); } catch (ServiceConfigurationError var5) { System.err.println("ScriptEngineManager providers.next(): " + var5.getMessage()); if (DEBUG) { var5.printStackTrace(); } } } } catch (ServiceConfigurationError var6) { System.err.println("ScriptEngineManager providers.hasNext(): " + var6.getMessage()); if (DEBUG) { var6.printStackTrace(); } } }
Example 2
Source File: ScriptEngineManager.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
private void initEngines(ClassLoader loader) { Iterator itr = null; try { if (loader != null) { itr = Service.providers(ScriptEngineFactory.class, loader); } else { itr = Service.installedProviders(ScriptEngineFactory.class); } } catch (ServiceConfigurationError var4) { System.err.println("Can't find ScriptEngineFactory providers: " + var4.getMessage()); if (DEBUG) { var4.printStackTrace(); } return; } try { while(itr.hasNext()) { try { ScriptEngineFactory fact = (ScriptEngineFactory)itr.next(); this.engineSpis.add(fact); } catch (ServiceConfigurationError var5) { System.err.println("ScriptEngineManager providers.next(): " + var5.getMessage()); if (DEBUG) { var5.printStackTrace(); } } } } catch (ServiceConfigurationError var6) { System.err.println("ScriptEngineManager providers.hasNext(): " + var6.getMessage()); if (DEBUG) { var6.printStackTrace(); } } }
Example 3
Source File: ScriptEngineManager.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
private void initEngines(ClassLoader loader) { Iterator itr = null; try { if (loader != null) { itr = Service.providers(ScriptEngineFactory.class, loader); } else { itr = Service.installedProviders(ScriptEngineFactory.class); } } catch (ServiceConfigurationError var4) { System.err.println("Can't find ScriptEngineFactory providers: " + var4.getMessage()); if (DEBUG) { var4.printStackTrace(); } return; } try { while(itr.hasNext()) { try { ScriptEngineFactory fact = (ScriptEngineFactory)itr.next(); this.engineSpis.add(fact); } catch (ServiceConfigurationError var5) { System.err.println("ScriptEngineManager providers.next(): " + var5.getMessage()); if (DEBUG) { var5.printStackTrace(); } } } } catch (ServiceConfigurationError var6) { System.err.println("ScriptEngineManager providers.hasNext(): " + var6.getMessage()); if (DEBUG) { var6.printStackTrace(); } } }
Example 4
Source File: ScriptEngineManager.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
private void initEngines(ClassLoader loader) { Iterator itr = null; try { if (loader != null) { itr = Service.providers(ScriptEngineFactory.class, loader); } else { itr = Service.installedProviders(ScriptEngineFactory.class); } } catch (ServiceConfigurationError var4) { System.err.println("Can't find ScriptEngineFactory providers: " + var4.getMessage()); if (DEBUG.booleanValue()) { var4.printStackTrace(); } return; } try { while(itr.hasNext()) { try { ScriptEngineFactory fact = (ScriptEngineFactory)itr.next(); this.engineSpis.add(fact); } catch (ServiceConfigurationError var5) { System.err.println("ScriptEngineManager providers.next(): " + var5.getMessage()); if (DEBUG.booleanValue()) { var5.printStackTrace(); } } } } catch (ServiceConfigurationError var6) { System.err.println("ScriptEngineManager providers.hasNext(): " + var6.getMessage()); if (DEBUG.booleanValue()) { var6.printStackTrace(); } } }