From: Andrew C. <an...@te...> - 2002-09-23 23:14:49
|
Hi All, I would welcome any comments for the following. I have added support for plugins to Jnode and moved most of the additions like clustering and resources as plugins. So if you wanted to start a node with a Disk Resource then you start Jnode with the DiskResource plugin. The Plugins are similar to beatrix plugins but if the plugin, using introspection, has a method getParameterBean() : Object then the object returned will be used in the plugin init function. This bean then gets set with parameters given at the command line and so the above example becomes: jnode -plugin org.jtrix.project.jnode.plugins.resource.DiskResource id=0 path=/tmp writable=true ... There are some hook plugins like facet support, service support, resource support. An Addition that I have started is the idea of a Jnode Wizard. This allows the user to create a boot object by selecting plugins and setting the parameters for them. Once this has been saved then using a command like Jnode -boot mynode.jwb (Jnode Wizard Bootfile) will start the node with all the plugins selected. The reason for this change would be to allow the hosting service, hospitality, to be run as a plugin to Jnode. I have attached a Class Diagram of the above architecture. Another point I was wondering, Has the JavaGroups code changed compared to the main branch on the JavaGroups project? If not can the source for this not become an external jar in the jnode project instead of the source itself. Andy C |