so i have the feeling that i have to create the ComponentModel directly and pass a "new DefaultContext(...)" with the proper entries. is that correct?
Not exactly - you need to construct a proper profile. In the case of an implicit profile its basically equivalent to:
<component name="widget" class="MyComponent"/>
Normally when using custom context entries you would describe a profile that declares a constructed context - e.g.:
<component name="basic" class="MyComponent">
<context>
<entry key="gws">
<constructor class="ReallySpecialClass">
<param class="java.io.File">temp</param>
<param>George C. Scott</param>
<param class="SpecialClass">
<param>100</param>
<param>200</param>
</param>
</constructor>
</entry>
</context>
</component>To do this programatically, your basically need to create a new ComponentProfile using the constructor that lets you supply a ContextDirective (the programmatic equivalent of the <context> xml tag). The ContextDirective would be supplied with an array of EntryDirective instances - e.t.c.
Cheers, Stephen.
--
|---------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org | |---------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
