Compact Plugs Beta

Compact Plugs is a small framework for make your applications extensible. Compact Plugs is built in two projects, with Compact Injection and Compact Plugs (not yet develop) . The idea of this framework is to support a Plug-in Model for your application in .Net Framework and .Net Compact Framework.

Compact Injection is a really small DI Container, for .Net Compact Framework and .Net Framework. Until now it only supports basic DI functions. It just supports injection for properties, not constructor nor methods injection.
The property injection only supports:
• ValueTypes
• ReferenceTypes - New - Now supports Dictionary and List Injections (Oct 17)
• Injection of other ObjectDefinitions

Features:
• CompactConstructor creates classes with private constructors, and can inject in private setters.
• CompactCostructor can have several object definitions, of the same object, in different contexts. The default context is name “Default”. Also for this feature you can create a Context selector, just implementing the interface IContextSelector.
• The configuration of the object definitions can be created by XML or by objects.

uml1.png

• Has a Registry for singleton ObjectDefinitions
• CompactConstructor, has a Default constructor for your application (Singleton). Of course you can create as many CompactConstructor´s as you want.
You can invoke it like this: CompactConstructor.DefaultConstructor

When you download CompactContainer, you also download a project call TestInjection, which is an example, of how to use it.

Compact Plugs was call before Compact Container

---
My blog http://www.ranu.com.ar (in spanish)
Last edited Oct 18 at 12:59 PM by elranu, version 14

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987