/* @VaadinApache2LicenseForJavaFiles@ */ package com.vaadin.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.vaadin.terminal.gwt.server.ClientConnector; /** * If this annotation is present on a {@link ClientConnector} class, the * framework ensures the referenced JavaScript files are loaded before the * corresponding client-side connector is initialized. * * @author Vaadin Ltd * @version @VERSION@ * @since 7.0.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface JavaScript { /** * JavaScript files to load before initializing the client-side connector. * * @return an array of JavaScript file urls */ public String[] value(); }