Trace:
Differences
This shows you the differences between two versions of the page.
vaadin:launch_control [2018/02/06 11:55] admin created |
vaadin:launch_control [2020/07/03 17:02] (current) cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTRANS~~ | ~~NOTRANS~~ | ||
- | ~~Title: Access launcher and application before application starts~~ | + | ~~Title: Access Launcher and Application Before Application Starts~~ |
- | Sometimes, it's important to configure the application or to set custom properties into the launcher, before the application starts. This could be useful if external authentication systems will be used, e.g. via SpringSecurity or different Authentication Filters. | + | Sometimes, it's important to configure the application or to set custom properties into the launcher before the application starts. This could be useful if external authentication systems will be used, e.g., via SpringSecurity or different authentication filters. |
- | It's still possible to use special authenticators for your application, but sometimes this mechanism is too late because the Http Filter handles authentication. | + | It's still possible to use special authenticators for your application, but sometimes this mechanism is too late because the http filter handles authentication. |
- | Usually you would extend the standard VaadinUI implementation to do some tweaks, but not everything is possible because you can't do anything between launcher creation and application instantiation. | + | Usually, you would extend the standard VaadinUI implementation to do some tweaks, but not everything is possible because you can't do anything between launcher creation and application instantiation. |
If you need early access to launcher and application, you could use the IVaadinUIPhaseController. It's a simple interface that defines a phaseChanged method. This method will be called at specific states of VaadinUI. | If you need early access to launcher and application, you could use the IVaadinUIPhaseController. It's a simple interface that defines a phaseChanged method. This method will be called at specific states of VaadinUI. | ||
Line 12: | Line 12: | ||
You can use it to get access to the launcher directly after its creation or to access the application instance before it will be visible. | You can use it to get access to the launcher directly after its creation or to access the application instance before it will be visible. | ||
- | Simply, add an init-parameter to your web.xml: | + | Simply add an init-parameter to your web.xml: |
<file xml> | <file xml> | ||
Line 22: | Line 22: | ||
//(if you run a portlet, use the parameter name: vaadinui.phaseController)// | //(if you run a portlet, use the parameter name: vaadinui.phaseController)// | ||
- | The parameter defines your implementation of IVaadinUIPhaseController, e.g. | + | The parameter defines your implementation of IVaadinUIPhaseController, e.g., |
<file java> | <file java> |