All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.core.client.GwtScriptOnly Maven / Gradle / Ivy

/*
 * Copyright 2009 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.google.gwt.core.client;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
 * This annotation is used to break out of a module's source path in hosted
 * mode. Types annotated with this annotation will not be loaded by hosted
 * mode's CompilingClassLoader. Instead, the bytecode for the type will be
 * loaded from the system classloader.
 * 

* This annotation is typically combined with the super-source tag * to provide web-mode implementations of (binary-only) types that the developer * wishes to use in Development Mode. This can be used, for instance, to provide * a reference implementation to develop unit tests. *

* This annotation may also be applied to jsni methods to prevent them from * being parsed and loaded for Development Mode. This is done under certain * circumstances as an optimization to avoid loading very large jsni methods * which are only executed in Production Mode. */ @Documented @Target({ElementType.TYPE, ElementType.METHOD}) public @interface GwtScriptOnly { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy