Re: [picocontainer-dev] add class as class?
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Tis not a regular usecase.
We go back to two methods ..
addComponent(Object, Object)
addComponent(Object, Class)
Which I guess you were casting to the former. Since they are merged
there and if/else based on whether the second param is a Class or now.
Or we could have ..
addComponent(myKey, new ClassAsInstance(Foo.class));
- Paul
On May 31, 2007, at 5:23 PM, Putrycz, Erik wrote:
> Is there any way in Pico 2 to register a class as class in the
> container? I was using that with pico 1...
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email