/** * Creates a new PerRequest KnowledgeRuntimeManager. * @return the PerRequest KnowledgeRuntimeManager */ protected KnowledgeRuntimeManager newPerRequestRuntimeManager() { return _runtimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerType.PER_REQUEST); }
/** * Gets a RuntimeEngine for an undefined {@link Context}. * @return the RuntimeEngine */ public RuntimeEngine getRuntimeEngine() { return getRuntimeEngine((Context<?>)null); }
/** * Removes a runtime manager. * @param serviceDomainName the service domain name * @param serviceName the service name */ public static final synchronized void removeRuntimeManager(QName serviceDomainName, QName serviceName) { putRuntimeManager(serviceDomainName, serviceName, null); }
private synchronized void disposeSingletonRuntimeEngine() { if (_singletonRuntimeManager != null) { try { _singletonRuntimeManager.disposeRuntimeEngine(_singletonRuntimeManager.getRuntimeEngine()); } finally { try { _singletonRuntimeManager.close(); } finally { _singletonRuntimeManager = null; } } } }
/** * Gets the wrapped globals. * @return the globals */ public Globals getSessionGlobals() { return isRemote() ? null : getKieSession().getGlobals(); }
private void disposePerRequestRuntimeEngine(KnowledgeRuntimeEngine perRequestRuntimeEngine) { _perRequestRuntimeManager.disposeRuntimeEngine(perRequestRuntimeEngine); }
/** * {@inheritDoc} */ @Override public void disposeRuntimeEngine(RuntimeEngine runtime) { if (runtime instanceof KnowledgeRuntimeEngine) { runtime = ((KnowledgeRuntimeEngine)runtime).getWrapped(); } _runtimeManager.disposeRuntimeEngine(runtime); }
/** * Gets a RuntimeEngine for an undefined {@link Context}. * @return the RuntimeEngine */ public RuntimeEngine getRuntimeEngine() { return getRuntimeEngine((Context<?>)null); }
/** * Gets the wrapped globals. * @return the globals */ public Globals getSessionGlobals() { return isRemote() ? null : getKieSession().getGlobals(); }
/** * Removes a runtime manager. * @param serviceDomainName the service domain name * @param serviceName the service name */ public static final synchronized void removeRuntimeManager(QName serviceDomainName, QName serviceName) { putRuntimeManager(serviceDomainName, serviceName, null); }
/** * Creates a new Singleton KnowledgeRuntimeManager. * @return the Singleton KnowledgeRuntimeManager */ protected KnowledgeRuntimeManager newSingletonRuntimeManager() { return _runtimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerType.SINGLETON); }
private KnowledgeRuntimeEngine getRuntimeEngine() { return (KnowledgeRuntimeEngine)_runtimeManager.getRuntimeEngine(); }
/** * Creates a new PerProcessInstance KnowledgeRuntimeManager. * @return the PerProcessInstance KnowledgeRuntimeManager */ protected KnowledgeRuntimeManager newPerProcessInstanceRuntimeManager() { return _runtimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerType.PER_PROCESS_INSTANCE); }
private KnowledgeRuntimeEngine getRuntimeEngine() { return (KnowledgeRuntimeEngine)_runtimeManager.getRuntimeEngine(); }
/** * Creates a new PerProcessInstance KnowledgeRuntimeManager. * @return the PerProcessInstance KnowledgeRuntimeManager */ protected KnowledgeRuntimeManager newPerProcessInstanceRuntimeManager() { return _runtimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerType.PER_PROCESS_INSTANCE); }
private KnowledgeRuntimeEngine getRuntimeEngine() { return (KnowledgeRuntimeEngine)_runtimeManager.getRuntimeEngine(); }
/** * Creates a new Singleton KnowledgeRuntimeManager. * @return the Singleton KnowledgeRuntimeManager */ protected KnowledgeRuntimeManager newSingletonRuntimeManager() { return _runtimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerType.SINGLETON); }
private KnowledgeRuntimeEngine getPerRequestRuntimeEngine() { return (KnowledgeRuntimeEngine)_perRequestRuntimeManager.getRuntimeEngine(); }
/** * Creates a new PerRequest KnowledgeRuntimeManager. * @return the PerRequest KnowledgeRuntimeManager */ protected KnowledgeRuntimeManager newPerRequestRuntimeManager() { return _runtimeManagerFactory.newRuntimeManager(KnowledgeRuntimeManagerType.PER_REQUEST); }
private synchronized KnowledgeRuntimeEngine getSingletonRuntimeEngine() { if (_singletonRuntimeManager == null) { _singletonRuntimeManager = newSingletonRuntimeManager(); } return (KnowledgeRuntimeEngine)_singletonRuntimeManager.getRuntimeEngine(); }