Thanks for answer!

>>
>>2. Can I add in context my own data differ from String type?
>>
SM> You can include anything derived from java.lang.Object.

But how I can do this?

This from example:

     <component name="basic-sample" 
class="org.apache.excalibur.playground.BasicComponent" activation="startup">

       <categories priority="DEBUG">
         <category priority="WARN"  name="loader" />
       </categories>

       <context class="org.apache.excalibur.playground.BasicContext">
         <entry key="location">My Place</entry>
         <import name="avalon:home" key="home"/>
       </context>
     </component>

Key "location" is set to String and key "home" set to value from
parent context. And if I want set key "servletContext" to
HttpServletContext value - where I must do this?

When Merlin kernel initialize with

        final DefaultController controller = new DefaultController();
        DefaultContext context = new DefaultContext();
        context.put( DefaultController.DIR_KEY, base );
        context.put( DefaultController.PATH_KEY, filename );
        context.makeReadOnly();
        try
        {
            controller.contextualize( context );
            controller.initialize();
            controller.start();
        }
        catch( FileNotFoundException e )
        {
        }

<code>context</+code> don't pass to components as parent.....


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

Reply via email to