AppShellRegistry.java (vaadin-flow-4.0.7) | : | AppShellRegistry.java (vaadin-flow-4.0.8) | ||
---|---|---|---|---|
skipping to change at line 124 | skipping to change at line 124 | |||
*/ | */ | |||
public void reset() { | public void reset() { | |||
this.appShellClass = null; | this.appShellClass = null; | |||
} | } | |||
/** | /** | |||
* Sets the {@link AppShellConfigurator} class in the application. Pass a | * Sets the {@link AppShellConfigurator} class in the application. Pass a | |||
* null to reset the previous one when reusing the instance. | * null to reset the previous one when reusing the instance. | |||
* | * | |||
* @param shell | * @param shell | |||
* the class extending VaadinAppShell class. | * the class implementing AppShellConfigurator. | |||
*/ | */ | |||
public void setShell(Class<? extends AppShellConfigurator> shell) { | public void setShell(Class<? extends AppShellConfigurator> shell) { | |||
if (this.appShellClass != null && shell != null) { | if (this.appShellClass != null && shell != null) { | |||
throw new InvalidApplicationConfigurationException( | throw new InvalidApplicationConfigurationException( | |||
String.format(AppShellRegistry.ERROR_MULTIPLE_SHELL, | String.format(AppShellRegistry.ERROR_MULTIPLE_SHELL, | |||
this.appShellClass.getName(), shell.getName())); | this.appShellClass.getName(), shell.getName())); | |||
} | } | |||
this.appShellClass = shell; | this.appShellClass = shell; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |