Integration with Spring IoC

7 views
Skip to first unread message

fink

unread,
Jan 6, 2010, 3:13:03 PM1/6/10
to Induction Framework
I found inductionframework today and i should say it is very
inspiring.

It miss only Spring IoC integration.

Your presentation contains topic "Pluggable IoC provider", but when it
will be available?

I can fall back to Location Pattern and call spring's
ApplicationContext.getBean for all dependencies from web layer
classes, but it is really painful and big step back...

Adi

unread,
Jan 10, 2010, 5:42:23 PM1/10/10
to Induction Framework
Hi, thanks for your own inspiring comment and sorry for the delay in
the reply.

I do not have a definite time line since its a "future" feature...that
said I will hopefully have a chance to look at it in Mar, and your
interest in it gives me more motivation to look at it.

As a fallback, it may be possible to already do it fairly easily by
writing a single factory class. In other words for each model you
define the respective interface in the <class> directive but refer to
a single factory implementation in <factory-class>. The idea is that
the createModel() method of the factory class you write can request
injection of the Config.ModelDefs.ModelDef class, this object contains
the class name you specified in the <class> directive for the model
for which the factory is being called. Just and idea if you care to
explore, and see if it works out.

Thanks again for taking the time to leave a comment.

Adi

Reply all
Reply to author
Forward
0 new messages