Upstream version 6.35.131.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / JavascriptInterface.java
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.
5
6 package org.xwalk.core;
7
8 import java.lang.annotation.ElementType;
9 import java.lang.annotation.Retention;
10 import java.lang.annotation.RetentionPolicy;
11 import java.lang.annotation.Target;
12
13 /**
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)}
18  * about the usage.
19  */
20 @SuppressWarnings("javadoc")
21 @Retention(RetentionPolicy.RUNTIME)
22 @Target({ElementType.METHOD})
23 public @interface JavascriptInterface {
24 }