[ 
http://issues.apache.org/jira/browse/HIVEMIND-95?page=comments#action_12319025 
] 

James Carman commented on HIVEMIND-95:
--------------------------------------

You can use a "holder" service for this if you wish:

public interface ServletContextHolder
{
  public ServletContext getServletContext();
  public void setServletContext( ServletContext servletContext );
}

> Programatic Instance Registration / Bean Autowiring
> ---------------------------------------------------
>
>          Key: HIVEMIND-95
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-95
>      Project: HiveMind
>         Type: New Feature
>   Components: framework
>  Environment: All
>     Reporter: David DeWolf

>
> It would be nice to have the ability to register an existing object (not 
> managed by the registry) with the Registry so that it can correctly autowire 
> managed services which require an instance of the object.
> A good example of where this would be commonly used would be within a servlet 
> container.  Often services require an instance of the ServletContext.  The 
> application should be able to retrieve an instance of the Registry, register 
> the ServletContext within the register, and then assume that any service 
> retrieved from that point forward is automatically autowired with the 
> ServletContext - when required.
> See email thread: 
> http://mail-archives.apache.org/eyebrowse/[EMAIL 
> PROTECTED]&by=thread&from=988046

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to