Hello, 
 
My questions regard the use of the Context interface.  I have used the less 
portable means for getting a context object from the contextualize method in 
the past when using phoenix for my components - namely the following form: 
 
  public void contextualize( Context context ) 
         throws ContextException 
     { 
         BlockContext tContext = ( BlockContext ) context; 
     } 
 
As you can see the BlockContext is from phoenix.  I found myself doing this 
because I could get a path to the base phoenix directory via the 
getBaseDirectory() method.  I would like to use the recommended portable 
mechanism now that LDAPd is going to use more than one container.  The 
question is how do I make the container add the appropriate Context entry.  I 
would image that would be container implementation specific.  So how would I 
add this entry using say Merlin and Fortress: 
 
   <entry key="avalon:work" type="java.io.File"/> 
  
to be able to get 
 
   File workDirectory = ( File ) context.get( "avalon:work" ) ; 
 
as is the recommended way in the javadocs page for the Context interface here: 
 
http://avalon.apache.org/framework/api/org/apache/avalon/framework/context/Context.html
 
 
Thanks much, 
Alex 
 


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

Reply via email to