Comments (2)
Using the Vaadin Spring Integration:
- Implement your own VaadinService
public class WebPageService extends SpringAwareVaadinService {
public WebPageService(VaadinServlet servlet, DeploymentConfiguration deploymentConfiguration) {
super(servlet, deploymentConfiguration);
}
}
- Override
getServiceInitListeners()
@Override
protected Iterator<VaadinServiceInitListener> getServiceInitListeners() {
List<VaadinServiceInitListener> resultList = new ArrayList<>();
String[] serviceInitListenerBeanNames = getApplicationContext().getBeanNamesForType(VaadinServiceInitListener.class);
if(serviceInitListenerBeanNames.length > 0) {
for(String beanName : serviceInitListenerBeanNames) {
VaadinServiceInitListener vaadinServiceInitListener = getApplicationContext().getBean(beanName, VaadinServiceInitListener.class);
resultList.add(vaadinServiceInitListener);
}
}
return resultList.iterator();
}
- Configure your service init listeners
@Bean
public VaadinServiceInitListener applicationServiceInitListener() {
return new VaadinServiceInitListener() {
@Override
public void serviceInit(ServiceInitEvent event) {
event.addBootstrapListener(new CustomBootstrapListener());
}
};
}
Now, the given CustomBootstrapListener now will be called while bootstraping the application.
from flow-and-components-documentation.
The documentation file is in https://github.com/vaadin/flow-and-components-documentation/blob/master/documentation/advanced/tutorial-bootstrap.asciidoc#bootstraplistener
from flow-and-components-documentation.
Related Issues (20)
- document how to include images into a form (online / offline)
- Fusion: update the doc to include the authentication features
- Document Binder::saveBeanAsDraft
- Fusion: Handle Deferred Call Result document imporement
- Update 'Binding Items to Components' chapter with last version of ComboBox with data view HOT 1
- IE11 transpile is not documented
- Pro component license verification doesn't work in incognito mode
- Template sections in the documentation have incorrect url HOT 1
- Add a section describing how to migrate from PolymerTemplate to LitElement HOT 1
- Fusion: incorrect document
- Document TS API for connection indicator configuration
- Missing docs: custom SessionInitListener with Vaadin-Spring HOT 1
- Vaadin 17, "Creating an In-project Web Component" - the example should use TypeScript
- VaadinServiceInitListener page: mention that META-INF/services doesn't work with spring HOT 1
- Selecting items on a grid powered by a data provider with callbacks is not documented HOT 1
- Update HotSwapAgent instructions
- Document how to check user authentication offline
- "Enabling Push in your application" chapter is misleading
- Fusion: Add documentation for how to use a connection state change listener
- pnpm switch for Vaadin 14.2+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow-and-components-documentation.