SstRmiTools
SST provides tools for loading Java class information (the output of com.ibm.sst.JavaTypeRepository) into Smalltalk and creating Java code based on Smalltalk-based Java information. These capabilities are embodied in the SstRmiTypeBuilder.
When loading Java class information (as generated by SstRmiTypingRepository) into Smalltalk, the builder stores Java class specifications in the image in VA Smalltalk applications associated with your code and SST itself. As a convenience, the specs are stored in methods on the instance side of the application class.
Loading from a definition file is done using the merge API:
mergeDefinitionsFrom: filename
Merges the Java class definitions from @filename into the receiver. If application is non-nil, the newly loaded definitions are stored in instance methods on the application class. For examples of these methods see the instance methods of SstRmiSupport. The file indicated by @filename should contain Java class descriptions in the form output by the com.ibm.sst.JavaClassRepository.generateFor() method (or the lookup() method of that class).
Definitions can also be loaded directly from a remote Java repository using the following API:
mergeRemoteDefinitionsFor: names from: server
Merges the definitions for the Java classes in @name from the Java type repository @server into the receiver. If application is non-nil, the newly loaded definitions are stored in instance methods on the application class. For examples of these methods, see the instance methods of SstRmiSupport. @server should be a remote reference to the JavaTypeRepository server.
Once a set of definitions has been merged and saved on an application, they can be loaded into a repository using the load API:
loadDefinitionsFrom: application
Loads the Java class definitions from @application. The definitions are found in instance methods on the application class. For examples of these methods see the instance methods of SstRmiSupport.
Last modified date: 01/29/2015