Menu

#9 Suggestion for Pluggable implementations factory

open
nobody
5
2007-02-03
2007-02-03
No

MicroEmulator should be able to use different implementations for JSR packaged in jars

Example for implementation jsr-75.jar

Optionally May contain org/fs/me-implementation.xml file
<me-implementation>
<class name=”org.impl.FsRegistryImpl” implements=” org.microemu.cldc.file.FileSystemRegistryStub”/>
<connector Protocol=”file” class=”org.impl.FsConnector”>
</me-implementation>

Command line options -impl org/fs/me-implementation.xml

java -cp me-app.jar;jsr75.jar;jsr82.jar org.microemu.app.Main -impl org/fs/me-implementation.xml -impl org/bt/me-implementation.xml

Additional command line (Applet config) options should be passed to implementations.
Published interface to access these options should be created.

Example: –impl_option org.fs=memory

The same May apply to existing rms, http and other connections.

This should be reviewed to enable bundle of the device.xml with JSRs

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.