[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The Browser Wars are Dead! Long Live the Browser Wa rs!


Re:  The Browser Wars are Dead! Long Live the Browser Wa rs!
On Wednesday 23 October 2002 09:47, tblanchard@m... wrote:

> OTOH, more dynamic languages will allow you to simply query the class
> and you can dispense with the IDL as its information can be
> automatically generated by interrogation.

With Java, as long as you have a Java interface declared, you can at least 
dispense with the stubs by using a Proxy.

The Proxy stuff in Java rocks my world. I used it to define my own RMI-like 
protocol, for example.

But it's a shame I can't use Java reflection to dynamically *make* an 
interface, I have to write out Java source then compile it then put it in the 
classpath then Class.forName () it to do that. A bit clunky. I could probably 
learn the format of bytecode and write a class that directly generates the 
bytecode in a byte array and uses the classloader to turn that into a class, 
but it'd be nice if it was just there because then I could dynamically 
generate interfaces.

However, only code that used reflection to call methods could actually use 
those interfaces since any other code would need to have been compiled 
against the interface. But then again that does kind of make sense.

ABS

-- 
A city is like a large, complex, rabbit
 - ARP

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.