You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "James Carman (JIRA)" <hi...@jakarta.apache.org> on 2005/08/17 16:11:54 UTC

[jira] Commented: (HIVEMIND-95) Programatic Instance Registration / Bean Autowiring

    [ 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/BrowseList?listName=hivemind-user@jakarta.apache.org&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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org