On Aug 4, 2006, at 10:33 AM, Yang Lei wrote:

Hello,

With M1 Driver, I can load a sca.module by creating a StAXLoaderRegistry and registering loaders into it. I wonder if Tuscany has a better way for me to get a StAXLoaderRegistry (or some other instance) fully loaded with all the loaders (Tuscany basics or other extensions ) so I can load any SCDL w/o
worrying of what are the current supported loaders...

The purpose of loading the SCDL is to read the defintion to start some
processing w/o creating the moduleContext and start it.

Yang, could you give a little more information on what you are trying to do?

The loader infrastructure is designed to support deployment scenarios where we need to create the runtime artifacts needed to host the user's application. This needs a lot of additional infrastructure to capture information not contained in the SCDL (for example, introspecting Java classes, loading external files, ...). To do all that you really need the runtime running (as it has the mechanisms for loading extensions, introspection, resolving external artifacts and so on). From the running runtime you can access the registry as a service.

On the other hand, if you are in a tooling environment and are just editing the SCDL, you may not need all that. If you're looking to slurp in XML, edit it and write it out again, some form of XML editor (e.g. vi) or modeler (e.g. EMF) may be more appropriate.

--
Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to