1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Copyright (c) 2014 Intel Corporation. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
6 package org.xwalk.core;
8 import java.lang.annotation.ElementType;
9 import java.lang.annotation.Retention;
10 import java.lang.annotation.RetentionPolicy;
11 import java.lang.annotation.Target;
14 * Marks a method as being able to be exposed to JavaScript. This is used for
15 * safety purposes so that only explicitly marked methods get exposed instead
16 * of every method in a class.
17 * See the explanation for {@link XWalkView#addJavascriptInterface(Object, String)}
20 @SuppressWarnings("javadoc")
21 @Retention(RetentionPolicy.RUNTIME)
22 @Target({ElementType.METHOD})
23 public @interface JavascriptInterface {