I wasn't planning on defining a custom runtime, only setting up a runtime by passing the information currently contained in the defualt.scdl file directly to the loader, bypassing the file system.
What I am trying to do is create all the classes and interfaces for the system in memory, and then pass those to the launcher in order to start the runtime. On 8/9/06, Jim Marino <[EMAIL PROTECTED]> wrote:
Hi David, Yes, you should be able to do this, although you may need to create your own Bootstrapper implementation as opposed to DefaultBootstrapper. Depending on what you want to do, you can either create an in memory representation of the model, passing it to the Deployer system service or you can create one of the subclasses of SCAObject and pass it to CompositeComponent.register() if you want to avoid the model altogether and do something like PicoContainer (http://www.picocontainer.org/). If you opt for the latter you will be responsible for wiring. The above assumes you want to essentially create a custom runtime distribution. If your goal is to dynamically bind something from some type of instrumentation, then that would best be done through a management API that hasn't been defined but which people have talked about. The custom runtime option will likely not work from application code as the system classloaders are isolated. Also, in Dependency Injection-based systems, I generally find dynamic binding to be an anti-pattern that is best avoided through configuration. Perhaps you could detail a little more what you are trying to do? Also, if you wanted to talk about a potential management API, I know several of us would be interested. Jim On Aug 9, 2006, at 2:49 PM, David Wheeler wrote: > I'm trying to dynamically define a service based on an interface > and I was > wondering, > Is there currently a way to pass the description of an SCA application > directly rather than passing the information through the defualt.scdl? > > -David W --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]