com.vaadin.osgi.push.PushResourcesContribution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-push Show documentation
Show all versions of vaadin-push Show documentation
Vaadin server push support
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.osgi.push;
import java.util.ArrayList;
import java.util.List;
import org.osgi.service.component.annotations.Component;
import com.vaadin.osgi.resources.OsgiVaadinContributor;
import com.vaadin.osgi.resources.OsgiVaadinResource;
@Component
public class PushResourcesContribution implements OsgiVaadinContributor {
private static final String[] RESOURCES = { "vaadinPush.js",
"vaadinPush.js.gz", "vaadinPush.debug.js",
"vaadinPush.debug.js.gz" };
@Override
public List getContributions() {
final List contributions = new ArrayList<>(
RESOURCES.length);
for (final String theme : RESOURCES) {
contributions.add(OsgiVaadinResource.create(theme));
}
return contributions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy