comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Ada-Java interface
Date: Fri, 1 Jul 2005 01:18:40 +0100
Date: 2005-07-01T01:18:40+01:00	[thread overview]
Message-ID: <mailman.121.1120177165.17633.comp.lang.ada@ada-france.org> (raw)

I'm starting a multilingual (w.r.t. programming language) project. The 
languages include Ada, Java and R. Some central parts are in Java, and 
the other languages are used in satellite parts. At this point we're 
still discussing the means of interfacing between languages. One good 
solution for the Ada-Java interface would be, on the Ada side, to be 
able to import/bind Java classes and packages, and generate JBC. Is 
this viable? Which GNAT version? Any examples? Thanks a lot. To 
illustrate, a Java unit that the Ada part needs to import follows.

package usage;

         // Encapsulates data for a single usage log entry
         class Entry

                 // Usage log entry with given data
                 Entry(
                         User user,
                         Action action,
                         String origin,  // identifies point in GUI that
                                         // triggered this action
                         Date date)

         // Query on the usage log
         class Query

                 // creates new query
                 Query()

                 // list entries of given users
                 // set null for all users (default)
                 setUsers(Users[])

                 // list entries with given actions
                 // set null for all actions (default)
                 setActions(Action[])

                 // return only entries after given date
                 // set null to begin with first recorded entry (default)
                 setBeginDate(Date begin)

                 // return only entries before given date
                 // set null to end with last recorded entry (default)
                 setEndDate(Date end)

                 // execute query with current restrictions
                 usage.execute()

                 // returns iterator with each Entry matching this query
                 Iterator iterator();




             reply	other threads:[~2005-07-01  0:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-01  0:18 Marius Amado Alves [this message]
     [not found] ` <0jl9c1t1r94bfjvja4tk8kl23q178c5o9l@4ax.com>
2005-07-01  9:01   ` Ada-Java interface Marius Amado Alves
2005-07-03  3:38     ` Brian May
2005-07-03 11:15       ` Larry Kilgallen
2005-07-03 12:07         ` Dmitry A. Kazakov
  -- strict thread matches above, loose matches on Subject: below --
2005-07-01 15:20 Robert C. Leif
2005-07-01 18:42 ` Dmitry A. Kazakov
     [not found] <200507011520.j61FKWLZ018471@mail730.megamailservers.com>
2005-07-01 15:38 ` Marius Amado Alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox