RE: introduction
"Shankar Unni" <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <01d201c35144$011fe7c0$0300a8c0@HQSHANKAR> |
Lendvai Attila wrote: > i've just subscribed to the list because i'm thinking of > integrating beanshell into andromda (sourceforge). I wondered about the spelling. That's AndroMDA, I take it. (Not the 6 other hits containing the "properly" spelled "Andromeda"..) > so there's two possible way to solve this: > > A: create a preprocessor that turns the <+ +> blocks into > stream.write()'s and call untouched beanshell Much preferable, IMO. It has two major benefits: * It keeps BeanShell's design clean as a scripting engine, instead of morphing it into a half-done template generation / scripting engine. * It preserves *your* freedom to host such a preprocessor on top of any other scripting component (Perl, DynamicJava, ...), should the need or desire arise. > is it simple to call java objects from beanshell? Yes, completely painless. You can access a class in the normal way using its fully package-qualified path, or using an import statement (anywhere where you could put a declaration) and then using the unqualified class name. -- Shankar. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01