aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/annotations/LoadScripts.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/annotations/LoadScripts.java')
-rw-r--r--src/com/vaadin/annotations/LoadScripts.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/vaadin/annotations/LoadScripts.java b/src/com/vaadin/annotations/LoadScripts.java
new file mode 100644
index 0000000000..84ac2d2fb7
--- /dev/null
+++ b/src/com/vaadin/annotations/LoadScripts.java
@@ -0,0 +1,24 @@
+/*
+@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;
+
+/**
+ * Temporary hack used for ensuring external javascript libraries are included.
+ * To add a javascript, add this annotation to your Root class.
+ *
+ * @deprecated Will be removed in favor of a more robust solution before version
+ * 7.0.0
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+@Deprecated
+public @interface LoadScripts {
+ public String[] value();
+
+}