Loading of needed Java routines.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Loading of needed Java routines.

Thomas.Schneider
Hello there,

   amongst others, I am currently implementing EXECIO (syntax like in IBM
CMS and MVS) in my Rexx2Nrx translator.
   
   For the RUN-time routine enhancements needed for this, I am planning to
implement the 'FILTER' functionality in RexxFile, for instance:
 
    'EXECIO * DISKR' myfile "(ZONE 14 20 FIND 'CALL'  AVOID 'IF' FINIS STEM
mystem.)"     (just a samle)

would translate to

    FD_myfile=RexxFile.FD(myfile)
    FD_myfile.set_filter(zone_from,zone_to,''','CALL','IF')
    FD_myfile.access('READ LINES')
    mystem=FD_myfile.lines  

etc etc.

For efficiency reasons, EXECIO will use the already implemented 'BUFFERED
IO' (READ LINES) implemented in RexxFile

For the Filter Functions, RexxFile will reference a new class RexxFilter,
and thus will have an 'import Rexx2Nrx.Rexx2RT.RexxFilter' at the top of the
Netexx Program.

NOW, My QUESTIION is:

- when the RexxFilter Methods are NOT actually used for the program in
question (because it does not need Filter),
 
   will the class 'RexxFilter' be loaded into core by Java or not ?

In other words:

Are Java classes loaded at the point of their first Usage, or when an import
statement is present.
>From the docs I have available, I believe they are loaded into core ONLY
when actually USED (NOT when referenced),
 but I am NOT sure.

Any advise will be appreciated.

Thanks for your help in advance, Tom..
   

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>