|
External Value Configuration with IoC
2008-06-13 18:32:00 One of the things I haven’t like about using IoC containers, AKA dependency injection frameworks, was the string-based configuration model they exposed. In order to set these values, developers had 2 options: either use XML config (usually without the benefit of intellisense or refactoring support), or use code (still quoting property names - again, no ...
External Value Configuration with IoC
2008-06-13 11:32:00 One of the things I haven’t like about using IoC containers, AKA dependency injection frameworks, was the string-based configuration model they exposed. In order to set these values, developers had 2 options: either use XML config (usually without the benefit of intellisense or refactoring support), or use code (still quoting property names - again, no ...
Inversion of Control & Dependency Injection
2008-03-01 11:58:00 In the last Thursday, 28th Feb. 2008, we had our internal demoday in SK. The day was really informative. We had many interesting topics in different fields. My topic was an introduction about the inversion of control and the dependency injection. You can download it from here:Download: Internal_Demoday_28_2_08_IoC_DI-.pptxN.B: Most of the examples in the presentation use Sprint.NET as a DI framework.If you want to go deeper in the topic, I recommend the following article: Inversion of Control Containers and the Dependency Injection pattern. The author is Martin Fowler - Chief Scientist, ThoughtWorks - and the article is considered to be the ideal reference for the topic. google_ad_client = "pub-6699943802796732"; //728x90, created 12/23/07 google_ad_slot = "8172850607"; google_ad_width = 728; google_ad_height = 90;
By: Nour's Space
Eureka! AOP is the final piece of the multi-threaded smart client puzzle
2007-12-08 00:01:00 If you’ve read my recent post on the threading issues I’ve been dealing with in Smart Client Applications, then you’re probably beginning to get the picture that its fairly complex. To tell you the truth, it is. And up until this point I haven’t been able to find anything that’ll help - and that includes ...
Eureka! AOP is the final piece of the multi-threaded smart client puzzle
2007-12-08 00:01:00 If you’ve read my recent post on the threading issues I’ve been dealing with in Smart Client Applications, then you’re probably beginning to get the picture that its fairly complex. To tell you the truth, it is. And up until this point I haven’t been able to find anything that’ll help - and that includes ...
ObjectBuilder synchronization features needed for pub/sub-ing Smart Clients
2007-09-28 23:36:00 I’ve been getting some questions from the Dependency Injection folks out there as to why I have my own Object Builder wrapping the framework. There are two very good reasons why I do this: The first is to insulate the framework and application code that I write from the choice of one dependency injection technology or ...
ObjectBuilder synchronization features needed for pub/sub-ing Smart Clients
2007-09-28 23:36:00 I’ve been getting some questions from the Dependency Injection folks out there as to why I have my own Object Builder wrapping the framework. There are two very good reasons why I do this: The first is to insulate the framework and application code that I write from the choice of one dependency injection technology or ...
Fetching Strategy NHibernate Implementation Available
2007-09-17 02:54:00 A couple of months ago I put out a post discussing one way to implement custom fetching strategies. Anyway, I finally got around to putting my money where my mouth was… So, I’ve implemented the pattern in NHibernate, adding the following method to ISession: T Create<T>(); As well as adding the following interface to the NHibernate package: ...
Fetching Strategy NHibernate Implementation Available
2007-09-17 02:54:00 A couple of months ago I put out a post discussing one way to implement custom fetching strategies. Anyway, I finally got around to putting my money where my mouth was… So, I’ve implemented the pattern in NHibernate, adding the following method to ISession: T Create<T>(); As well as adding the following interface to the NHibernate package: ...
NServiceBus Distributed Topology Q&A
2007-08-25 10:37:00 I’ve been receiving more and more questions about how NServiceBus fits in distributed systems and wanted to share them: My question is about distributed topology. The EAI-hub-and-spoke model is all about the central server. It?s useful sometimes, but there are a lot of reasons why I?m not gung-ho on using a hub as the center ...
NServiceBus Distributed Topology Q&A
2007-08-25 10:37:00 I’ve been receiving more and more questions about how NServiceBus fits in distributed systems and wanted to share them: My question is about distributed topology. The EAI-hub-and-spoke model is all about the central server. It?s useful sometimes, but there are a lot of reasons why I?m not gung-ho on using a hub as the center ...
Is Dependency Injection Worth It?
2007-07-05 00:00:00 So I’ve been reading up on the benefits of Dependency Injection using Spring IoC. Basically the biggest benefit is that you can easily replace a component with a new one by updating the Spring configuration file. This is useful when: 1. You need to do unit testing, and you are only concerned with ...
By: Java Donkey
What do you understand by Inversion of Control/Dependency Injection?
2007-06-26 17:44:00 Spring is an Inversion of Control container through its bean factory concept.IoC helps in loose coupling of the code .Spring is most closely identified with a flavor of Inversion of Control known as Dependency Injection(DI)--a name coined by Martin Fowler, Rod Johnson and the PicoContainer team in late 2003.DI is an old concept which caught the fancy of Java EE community not so long ago.DI is quite useful in test driven development and avoiding dependencies on other collaborating objects helps in building unit tests of objects behavior that is under test. It follows famous Hollywood principle "Don't call me.I will call you". IoC moves the responsibility for making things happen into the framework, and away from application code. Whereas your code calls a traditional class library, an IoC framework calls your code. It segregates the calling mechanism of methods from actual implementation.Dependency Injection is a form of IoC.In DI an object uses the other object to...
Are fewer assemblies really better?
2007-06-19 22:59:00 If you’ve read Scott Hanselman’s great post Some guiding principles for Software Development, you’ve probably seen his point about “Fewer assemblies is better”, and might be thinking that you’ve seen me write about this before. If so, you’re absolutely right. Here are some choice quotes: In the end, you should see bunches of projects/dlls which go together, ...
Performant and Explicit Domain Models
2007-06-04 22:31:00 Some Technical Difficulties Ayende and I had an email conversation that started with me asking what would happen if I added an Order to a Customer?s “Orders” collection, when that collection was lazy loaded. My question was whether the addition of an element would result in NHibernate hitting the database to fill that collection. His answer ...
Interfaces solve visibility and testing issues
2007-06-04 11:09:00 Jimmy’s recent post called out some of the insights on the advantages of Ruby from Niclas’ keynote at DevSummit 2007. Jimmy writes: In Ruby it’s easy to redefine the visibility of a method from private to public for testing purposes. This was just one small detail in his talk of course, but I started to think ...
Frictionless Design
2007-05-14 09:21:00 From Ryan’s post on scaling Rails with multiple databases, he raises a point near and dear to my heart around the use of well designed frameworks (apparently sourced by Joe): When referring to framework and tooling, “friction” is a (subjective) measure of how much the tooling gets in your way when trying to solve a specific-case ...
First principle of design refined
2007-05-12 18:10:00 I’ve been trying over time to distill core principles that when followed lead to high quality designs. So far, I’ve only got one that I’ve been polishing. Here’s a reminder: For any classes A and B in a system, A should interact with B through an interface. The interface which separates two concrete classes should be packaged ...
Advanced Object Creation with Dependency Injection
2007-04-09 23:25:00 This is something that I?ve been running into more and more and have gotten tired of working around. Here?s an example scenario: I have an interface like ICustomer, which inherits from IEntity, another interface, and a third interface IValidator<T> where T : IEntity. I also have a class CustomerValidator which inherits from IValidator<ICustomer> and a class ...
Inversion of Control / Dependency Injection -- ??????? ?? ?????? ????????
2007-04-03 00:00:00 ???????????? ??? ? ??????? 2006, ?? ??? ???? ? ??????? ??????, ????? ??? ??????? ?????? ???? ??? ???????? ?? ??????????: ??????? ????? ?????? Simon'a Wacker'a ?? ???????? ???????? ?? OrangeFlash....
By: Flash Teh Ripper
|



