Stephen,

I looked over Merlin, and I think I'll ditch MicroContainer for it.

In particular, it would appear as if I can keep just the MicroContainer 
class (maybe move it over to Merlin).

Let me explain:

 + Merlin uses the ServiceLoader class to start up a component.

 + Basically, you say "ServiceLoader, the components are in these JAR
files,
   I want to use this component, load it." So I could use ServiceLoader
to
   get a DataSourceComponent and it would automatically check all listed
   JAR files for the depndencies of the DataSourceComponent.

But then, once Merlin has loaded the component, how do I get a reference
to it? That is, after calling initialize() on the serviceLoader, what do
I do then?

In particular, suppose I have this:

public void MyApp {

  public static void main(String[] args) throws Exception {
    // Do stuff

    ...
 
    // I want to use a DataSourceComponent right here.
    // The component I want to use is fully meta-enabled, and so is 
    // all its dependencies. How?
    
    ...
    
    // Some other stuff
  }

}

Question:

 + Does Merlin *require* the use of external XML files for
configuration? Or can
   a configuration be built programmatically and given to Merlin?

/LS


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

Reply via email to