You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "David H. DeWolf" <dd...@apache.org> on 2005/02/21 23:02:43 UTC

Autowiring existing instances

This seems like a newbie question that may have already been answered, 
so I'll apologize in advance that I couldn't find the answer anywhere.

How would I go about *programatically* registering a bean *instance* to 
be auto wired?  Specifically, some of my services require a 
ServletContext and I'd like to have Hivemind autowire it when required.

Thanks in advance,

David



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Autowiring existing instances

Posted by "David H. DeWolf" <dd...@apache.org>.
Sure thing,

It's good to know there's a reason why I couldn't find a way to do it :)

David

Knut Wannheden wrote:
> David,
> 
> This has been asked before and we've had discussions about adding
> support for programatical autowiring of beans. Would you mind adding a
> feature request to JIRA?
> 
> Regards,
> 
> --knut
> 
> On Mon, 21 Feb 2005 17:02:43 -0500, David H. DeWolf <dd...@apache.org> wrote:
> 
>>This seems like a newbie question that may have already been answered,
>>so I'll apologize in advance that I couldn't find the answer anywhere.
>>
>>How would I go about *programatically* registering a bean *instance* to
>>be auto wired?  Specifically, some of my services require a
>>ServletContext and I'd like to have Hivemind autowire it when required.
>>
>>Thanks in advance,
>>
>>David
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Autowiring existing instances

Posted by Knut Wannheden <kn...@gmail.com>.
David,

This has been asked before and we've had discussions about adding
support for programatical autowiring of beans. Would you mind adding a
feature request to JIRA?

Regards,

--knut

On Mon, 21 Feb 2005 17:02:43 -0500, David H. DeWolf <dd...@apache.org> wrote:
> This seems like a newbie question that may have already been answered,
> so I'll apologize in advance that I couldn't find the answer anywhere.
> 
> How would I go about *programatically* registering a bean *instance* to
> be auto wired?  Specifically, some of my services require a
> ServletContext and I'd like to have Hivemind autowire it when required.
> 
> Thanks in advance,
> 
> David
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org