@Override protected DeploymentConfiguration createDeploymentConfiguration( Properties initParameters) { Properties properties = new Properties(initParameters); config(properties); return super.createDeploymentConfiguration(properties); }
@Override protected DeploymentConfiguration createDeploymentConfiguration( Properties initParameters) { Properties properties = new Properties(initParameters); config(properties); return super.createDeploymentConfiguration(properties); }
/** * Creates a vaadin servlet service. This method functions as a layer of * indirection between {@link #init(ServletConfig)} and * {@link #createServletService(DeploymentConfiguration)} so dependency * injection frameworks can call {@link #createDeploymentConfiguration()} * when creating a vaadin servlet service lazily. * * @return the created vaadin servlet service * * @throws ServletException * if creating a deployment configuration fails * @throws ServiceException * if creating the vaadin servlet service fails */ protected VaadinServletService createServletService() throws ServletException, ServiceException { return createServletService(createDeploymentConfiguration()); }
/** * Creates a deployment configuration to be used for the creation of a * {@link VaadinService}. Intended to be used by dependency injection * frameworks. * * @return the created deployment configuration * * @throws ServletException * if construction of the {@link Properties} for * {@link DeploymentConfigurationFactory#createInitParameters(Class, ServletConfig)} * fails */ protected DeploymentConfiguration createDeploymentConfiguration() throws ServletException { return createDeploymentConfiguration(DeploymentConfigurationFactory .createInitParameters(getClass(), getServletConfig())); }