/** * Create a runtime delegate instance from the core library. The core * library (org.apache.olingo.odata2.core.jar) needs to be included into the classpath * of the using application. * @return an implementation object */ private static RuntimeDelegateInstance getInstance() { RuntimeDelegateInstance delegate; try { final Class<?> clazz = Class.forName(RuntimeDelegate.IMPLEMENTATION); /* * We explicitly do not use the singleton pattern to keep the server state free * and avoid class loading issues also during hot deployment. */ final Object object = clazz.newInstance(); delegate = (RuntimeDelegateInstance) object; } catch (final Exception e) { throw new RuntimeDelegateException(e); } return delegate; }
/** * Create a runtime delegate instance from the core library. The core * library (org.apache.olingo.odata2.core.jar) needs to be included into the classpath * of the using application. * @return an implementation object */ private static RuntimeDelegateInstance getInstance() { RuntimeDelegateInstance delegate; try { final Class<?> clazz = Class.forName(RuntimeDelegate.IMPLEMENTATION); /* * We explicitly do not use the singleton pattern to keep the server state free * and avoid class loading issues also during hot deployment. */ final Object object = clazz.newInstance(); delegate = (RuntimeDelegateInstance) object; } catch (final Exception e) { throw new RuntimeDelegateException(e); } return delegate; }
/** * Create a runtime delegate instance from the core library. The core * library (org.apache.olingo.odata2.core.jar) needs to be included into the classpath * of the using application. * @return an implementation object */ private static RuntimeDelegateInstance getInstance() { RuntimeDelegateInstance delegate; try { final Class<?> clazz = Class.forName(RuntimeDelegate.IMPLEMENTATION); /* * We explicitly do not use the singleton pattern to keep the server state free * and avoid class loading issues also during hot deployment. */ final Object object = clazz.newInstance(); delegate = (RuntimeDelegateInstance) object; } catch (final Exception e) { throw new RuntimeDelegateException(e); } return delegate; }
/** * Create a runtime delegate instance from the core library. The core * library (org.apache.olingo.odata2.core.jar) needs to be included into the classpath * of the using application. * @return an implementation object */ private static RuntimeDelegateInstance getInstance() { RuntimeDelegateInstance delegate; try { final Class<?> clazz = Class.forName(RuntimeDelegate.IMPLEMENTATION); /* * We explicitly do not use the singleton pattern to keep the server state free * and avoid class loading issues also during hot deployment. */ final Object object = clazz.newInstance(); delegate = (RuntimeDelegateInstance) object; } catch (final Exception e) { throw new RuntimeDelegateException(e); } return delegate; }