[ 
http://nagoya.apache.org/jira/browse/BEEHIVE-121?page=comments#action_56245 ]
     
Kenneth Tam commented on BEEHIVE-121:
-------------------------------------

My take on this was that it was basically asking for ControlBeanContext & 
subclasses to appropriately implement/override 
BeanContext.getResource/getResourceAsStream to do "the right thing" for the 
particular container(s) in question.  That seems to correspond to what the 
javadoc recommends:

http://java.sun.com/j2se/1.4.2/docs/api/java/beans/beancontext/BeanContext.html#getResourceAsStream(java.lang.String,%20java.beans.beancontext.BeanContextChild)


> ServletBeanContext should expose ServletContext resources directly.
> -------------------------------------------------------------------
>
>          Key: BEEHIVE-121
>          URL: http://nagoya.apache.org/jira/browse/BEEHIVE-121
>      Project: Beehive
>         Type: Improvement
>   Components: Controls
>     Versions: V1Beta
>     Reporter: Jonathan Colwell
>     Assignee: Kenneth Tam
>     Priority: Minor

>
> ControlContainerContext should provide a getResource method that delegates to 
> parent containers until a Context that is able to provide resources is found. 
>  For example, the ServletBeanContext would expose the getResource method from 
> the ServletContext directly rather than requiring an individual control 
> implementation to know it runs in a servlet context and call
> getService(ServletContext.class, null);
> on an instance of ControlBeanContext to load a resource from the context.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to