Annotation Type ScriptCallable
-
@Retention(RUNTIME) @Target(METHOD) public @interface ScriptCallableUsed to mark public methods on aComponentModelDelegatethat should be accessible to users in the script system. For example, if you had a method like:@ScriptCallable public void refresh() { super.fireEvent("refresh-me", new JsonObject()); }Then the user could write a script that invoked your refresh() method on script references to your component.