Jeremy D. Miller -- The Shade Tree Developer

Sponsors

The Lounge

Wicked Cool Jobs

Syndication

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
StructureMap 2.5.1 is Released

I just uploaded a new incremental release of StructureMap with a bunch of bugfixes and a few new features.  Download it here.

From the release notes:

* Fixed issue with With<T>(object).GetInstance<U>() functionality.  This is now much more robust.
* Bug fix for Hybrid scoping
* TryGetInstance() and TryGetNamedInstance(). 
* Ignore setter emitting for indexer properties -- fixed a bug reported on the forum
* Multithreading lock problem fixed by Josh
* Patch for session lifetime.  There is now an option for "CacheBy(InstanceScope.HttpSession)"
* Fixed Public IDictionary setter injection in xml : http://groups.google.com/group/structuremap-users/browse_thread/thread/21265544d73cd395?hl=en
* Pete Johnson's fix for ObjectFactory.Configure() setting policy.  You can now set the scoping/lifecycle of a PluginType from Configure()
* EjectAllInstances<T>() clears out Singleton objects now (and calls Dispose() if appropriate)
* Josh has added an experimental debugger visualizer for StructureMap Container's

* The AutoMocker isn't as whiny about RhinoMocks versions.  There is also an AutoMocker strategy for Moq now as well 

* A minor performance enhancement that stops StructureMap from doing a scan of all types on the StructureMap assembly itself.

 

Please send all questions to the StructureMap Google list.

 

The Future

I'm hoping to complete the new StructureMap website and documentation over the holidays, and that's the next priority.  After that, I'd like to get a new 2.6 release out in the early quarter of '09.  Here's what I'm thinking about in no particular order:

  1. A Silverlight ready version (i.e. a cutdown StructureMap)
  2. Finish the Mono support.  It's very close, but I want to make sure
  3. The *#%$ "BuildUp" functionality that allows you to do setter injection on an object that's created somewhere else.  Thank you ASP.Net.
  4. Convention based setter injection (low hanging fruit)
  5. A guarantee that StructureMap will function in partially trusted environments, or at least real guidance on what it can and cannot do
  6. "Missing Instance" handlers
  7. A "ConditionalInstance" that will give you easier ways to do conditional construction
  8. Improved diagnostics.  The error output and the output from StructureMapDoctor and ObjectFactory.AssertConfigurationIsValid() could be a lot better

Now's a good time to ask for things.

 

Ok, that's it for me this year.  Merry Christmas and Happy Holidays, and I'll see you in January.

 

 


Posted Mon, Dec 22 2008 10:41 AM by Jeremy D. Miller
Filed under:

[Advertisement]

Comments

Pete Johanson wrote re: StructureMap 2.5.1 is Released
on Mon, Dec 22 2008 2:40 PM

On the issue of Mono support, one of the bugs with *compiling* StructureMap on Mono (on linux here) was fixed sometime since the 2.0.1 release (see bugzilla.novell.com/show_bug.cgi). Using the 2.2 preview release here, I'm at least able to compile StructureMap.dll inside of MonoDevelop (SVN trunk MD).

However, trying to compile StructureMap.AutoMocking complains about the assembly version used for the "friend assembly" to allow StructureMap.Automocking to gain access to the one ObjectFactory.ReplaceManager method. Don't really have time to dig further, but it's coming along at least. No idea how well the unit tests fair running on Mono though.

If you need any help with testing, etc the Mono stuff, please let me know, I will be happy to help.

Rasmus Kromann-Larsen wrote re: StructureMap 2.5.1 is Released
on Mon, Dec 22 2008 4:06 PM

The download listing for 2.5.1 seems empty for me?

I can only seem to download 2.5.

Jeremy D. Miller wrote re: StructureMap 2.5.1 is Released
on Mon, Dec 22 2008 4:24 PM

Fixed in SourceForge.  Please try again.

Jeff Doolittle wrote re: StructureMap 2.5.1 is Released
on Mon, Dec 22 2008 10:19 PM

PRISM bootstrapper for StructureMap (preferably with no dependencies on WPF).  That's what *I* want for Christmas.

Jeremy D. Miller wrote re: StructureMap 2.5.1 is Released
on Mon, Dec 22 2008 10:20 PM

@Jeff,

Okay, I just promised that to about 2 people, so Prism Bootstrapper it is.

...but for Jan. 5th

Karsten wrote re: StructureMap 2.5.1 is Released
on Tue, Dec 23 2008 3:24 AM

Merry Christmas to you too, and thanks for StructureMap :-)

Kelly Brownsberger wrote re: StructureMap 2.5.1 is Released
on Tue, Dec 23 2008 3:24 PM

It's fine to throw hate at ASP.NET for creating a need for BuildUp, but I would say the WinForms designer is another real-world scenario where BuildUp is a must.  I most definitely hate the WinForms designer, but I hate the work involved in avoiding it even more.  If someone's got a better way, I'd love to hear about it.  I've found the least-friction approach is to have pure ctor based DI at the outer levels of the UI classes, but use setter based injection on designer constructed instances on inner controls.  Having a container that can do this for me, is one less thing I have to worry about.

Yes, it feels a little ugly, but there's are too many real-world scenarios where this just makes a lot of pragmatic sense.

Dew Drop - December 23, 2008 | Alvin Ashcraft's Morning Dew wrote Dew Drop - December 23, 2008 | Alvin Ashcraft's Morning Dew
on Tue, Dec 23 2008 5:32 PM

Pingback from  Dew Drop - December 23, 2008 | Alvin Ashcraft's Morning Dew

Jeremy D. Miller wrote re: StructureMap 2.5.1 is Released
on Tue, Dec 23 2008 5:59 PM

@Kelly,

You don't need "BuildUp" for WinForms or WPF.  Use the more "Presenter First" approach and have the View injected into the Presenter, and the Shell  injected into the ApplicationController.  It's not the normal Microsoft way, but it works out well in practice.

I'll blog on that in January.  I've already got something queued up that might address that.

DotNetKicks.com wrote StructureMap 2.5.1 Released
on Wed, Dec 24 2008 1:54 AM

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Brian wrote re: StructureMap 2.5.1 is Released
on Tue, Dec 30 2008 4:12 PM

Suggestion for the StructureMap website: an ultra short example on the home page to demonstrate what StructureMap is.

Jeremy D. Miller -- The Shade Tree Developer wrote Quickie StructureMap Update for Jan ‘09
on Sun, Jan 4 2009 11:42 PM

Before the holidays I more or less promised the stuff below (and status in bold red).&#160; The short

Community Blogs wrote Quickie StructureMap Update for Jan ‘09
on Mon, Jan 5 2009 12:30 AM

Before the holidays I more or less promised the stuff below (and status in bold red). The short status

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Devlicio.us