protected <T extends Engine> T engine(Class<T> type, String scope) { if (engineFactory == null) { throw new IllegalStateException("No JavaScript engine available"); } return type.cast(engineFactory.get(getClass().getSimpleName(), scope)); }
public void stop() { if (engineFactory != null) { this.engineFactory.release(); } }
public void stop() { if (engineFactory != null) { this.engineFactory.release(); } }
protected <T extends Engine> T engine(Class<T> type, String scope) { if (engineFactory == null) { throw new IllegalStateException("No JavaScript engine available"); } return type.cast(engineFactory.get(getClass().getSimpleName(), scope)); }