RE: [picocontainer-dev] add class as class?
"Putrycz, Erik" <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
addComponent(myKey, new ClassAsInstance(Foo.class)); is not bad. I agree this is not a regular use case and I think it is nice to have a single method. Erik -----Original Message----- From: Paul Hammant [mailto:[email protected]] Sent: June 1, 2007 0:58 To: dev-qxt/[email protected] Subject: Re: [picocontainer-dev] add class as class? 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 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email