Erich Eichinger
unread,Nov 21, 2009, 2:15:14 PM11/21/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spring-recoil-main
Hi Tom,
just played around w/ Recoil and have to admit, that I really like
it ;-)
Just a question: Is there a particular reason, why the syntax has to
read
Define<DbProviderFactoryObject>()
.Set(p => p.ConnectionString).To(() => "CS
{InvoicingManager.connectionstring}")
.Set(p => p.Provider).To(() => "SqlServer-2.0");
instead of the less "noisy"
Define<DbProviderFactoryObject>()
.Set(p => p.ConnectionString, "CS
{InvoicingManager.connectionstring}")
.Set(p => p.Provider, "SqlServer-2.0");
?
Also it'd be great to autowire by type or name with a syntax similar
to Wire(). This comes in handy, when one wants to mix autowiring and
explicit injection in a constructor:
Define( ()=>new MyRepository( WireByType<IMyDao>(),
"SomeOtherArgument" ) );
cheers,
Erich