Modifying how dependencies are loaded with DependencyFilters

    To control how the dependencies are loaded, and which files are effectively added or removed from the loading process, you can use DependencyFilters.

    Java

    Warning
    DependencyFilters allow you to change, add and remove any dependencies. You may leave your application in a broken state if you remove a required dependency for your project without providing a suitable replacement. With great power comes great responsibility.

    With your DependencyFilter in place, you need to add it to a ServiceInitEvent which is sent when a Vaadin service is initialized. Take a look on the ServiceInitListener tutorial on how to configure it.