
net.java.html.js.JavaScriptResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of net.java.html.boot Show documentation
Show all versions of net.java.html.boot Show documentation
Builder to launch your Java/HTML based application.
The newest version!
/**
* HTML via Java(tm) Language Bindings
* Copyright (C) 2013 Jaroslav Tulach
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. apidesign.org
* designates this particular file as subject to the
* "Classpath" exception as provided by apidesign.org
* in the License file that accompanied this code.
*
* You should have received a copy of the GNU General Public License
* along with this program. Look for COPYING file in the top folder.
* If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
*/
package net.java.html.js;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import net.java.html.boot.BrowserBuilder;
/** When a class annotated by this annotation is loaded into the Java virtual
* machine by {@link BrowserBuilder} classloader, the script referenced by
* this annotation gets loaded into associated JavaScript executor environment.
*
* @author Jaroslav Tulach
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface JavaScriptResource {
/** The JavaScript file to load in before associated class can execute.
* @return relative path with respect to the annotated class
*/
public String value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy