More on constructor injection

7 views
Skip to first unread message

Josh McDonald

unread,
Oct 15, 2009, 7:53:21 PM10/15/09
to smartyp...@googlegroups.com
Have you guys seen Potomac?

Check this slide:

http://www.potomacframework.org/the-5-minute-tour/tour-page-5/

It looks to me like they've figured a way to annotate constructors?

--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  jo...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/

Till Schneidereit

unread,
Oct 15, 2009, 8:04:49 PM10/15/09
to smartyp...@googlegroups.com
Hey Josh,

As far as I can tell from looking at
http://github.com/cgross/Potomac/blob/master/framework/potomac_core/src/potomac/inject/Injector.as
they aren't using reflection at all.
Quite probably, they're writing config xml's with their Flash Builder
plugin (didn't verify that, though).


cheers,
till
--
Till Schneidereit
Schneidereit Link GbR
technical concept, consulting, development
Tel: +49 40 970 7848 1

Till Schneidereit

unread,
Oct 15, 2009, 8:05:59 PM10/15/09
to smartyp...@googlegroups.com
Hey Josh,

As far as I can tell from looking at
http://github.com/cgross/Potomac/blob/master/framework/potomac_core/src/potomac/inject/Injector.as
they aren't using reflection at all.
Quite probably, they're writing config xml's with their Flash Builder
plugin (didn't verify that, though).


cheers,
till

On Fri, Oct 16, 2009 at 01:53, Josh McDonald <jo...@joshmcdonald.info> wrote:

Josh McDonald

unread,
Oct 15, 2009, 8:10:36 PM10/15/09
to smartyp...@googlegroups.com
Yeah, it's looking like that's probably the case. I still have a couple of other ideas to go down. I do plan on putting constructor injection in, but not until I've figured out a nice way to do it.

I'm definitely going to refactor the reflection stuff soon, although not with as3-commons, it's too big. SmartyPants is pretty damned small at the moment given its feature set, and I'm interested in keeping it that way. So it'll probably be base on my code, but with some cacheing, as there's no real performance optimisations there atm.

-Josh

2009/10/16 Till Schneidereit <tschne...@gmail.com>
Reply all
Reply to author
Forward
0 new messages