Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7589859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:15:58+00:00 2026-05-30T20:15:58+00:00

I have some java object and I want to expose all methods of it

  • 0

I have some java object and I want to expose all methods of it to custom javascript object. So, seems it would be reasonable to loop over all java object members, via reflection, and generate jsni code like: $wnd.myjso.func1 = function() { @package.MyJavaObject::func1()} and so on… Afterwards generated jsni must be executed to create javascript object on browser’s window. How to implement it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:15:59+00:00Added an answer on May 30, 2026 at 8:15 pm

    As you cannot use reflection at run-time, you have to do it at compile-time, using a GWT Generator.

    That being said, you don’t need to write such a generator by yourself, someone (now a Googler, member of the GWT team) has already done so: http://code.google.com/p/gwt-exporter/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have some xml code, and i want to parse this to java object
I have a Java object with some unknown structure. Now I want to output
I have a C program that stores some object in java store using JNI.
I have a bidimensional Object array in Java. Some indices aren´t used, because they
I have to take over and improve/finish some code that transforms Java objects from
I have some java-app, and i want to establish a connection to some https
I have some code that I want to refactor. I have lots of methods
I am trying to output some Java objects as JSON, they have List properties
I have some model objects I'm using in my Java client application. Later these
I have some Java code that uses curly braces in two ways // Curly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.