/** * Use this constructor in subclasses to provide a custom * {@link ExceptionHandler}. * * @param exceptionHandler an {@link ExceptionHandler} instance * @param serviceDecorators an array of ServiceLayerDecorators that change how * the RequestFactory request processor interact with the domain * objects */ public RequestFactoryServlet(ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators) { processor = new SimpleRequestProcessor(ServiceLayer.create(serviceDecorators)); processor.setExceptionHandler(exceptionHandler); }
protected SimpleRequestProcessor createRequestProcessor( ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators) { SimpleRequestProcessor processor = new SimpleRequestProcessor( ServiceLayer.create(serviceDecorators)); processor.setExceptionHandler(exceptionHandler); return processor; }
/** * Use this constructor in subclasses to provide a custom * {@link ExceptionHandler}. * * @param exceptionHandler an {@link ExceptionHandler} instance * @param serviceDecorators an array of ServiceLayerDecorators that change how * the RequestFactory request processor interact with the domain * objects */ public RequestFactoryServlet(ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators) { processor = new SimpleRequestProcessor(ServiceLayer.create(serviceDecorators)); processor.setExceptionHandler(exceptionHandler); }
protected void initOsgiProcessor() { // Set google serviceLayerCache off System.setProperty("gwt.rf.ServiceLayerCache", new Boolean(false).toString()); getDefaultExceptionHandler().setRequestFactoryServlet(this); ClassLoader old = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); processor = new SimpleRequestProcessor(ServiceLayer.create(new OsgiServiceLayerDecorator(dynamicClassLoaderManager.getPackageAdminClassLoader(null), serviceLocator, instanceCache))); processor.setExceptionHandler(getDefaultExceptionHandler()); Thread.currentThread().setContextClassLoader(old); }
/** * Use this constructor in subclasses to provide a custom * {@link ExceptionHandler}. * * @param exceptionHandler an {@link ExceptionHandler} instance * @param serviceDecorators an array of ServiceLayerDecorators that change how * the RequestFactory request processor interact with the domain * objects */ public RequestFactoryServlet(ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators) { processor = new SimpleRequestProcessor(ServiceLayer.create(serviceDecorators)); processor.setExceptionHandler(exceptionHandler); }
/** * Use this constructor in subclasses to provide a custom * {@link ExceptionHandler}. * * @param exceptionHandler an {@link ExceptionHandler} instance * @param serviceDecorators an array of ServiceLayerDecorators that change how * the RequestFactory request processor interact with the domain * objects */ public RequestFactoryServlet(ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators) { processor = new SimpleRequestProcessor(ServiceLayer.create(serviceDecorators)); processor.setExceptionHandler(exceptionHandler); }