Implementation Techniques
Implementation techniques are influenced by the computer language used.
In Java there are several basic techniques to implement inversion of control. These are:
- using a factory pattern
- using a service locator pattern
- using a dependency injection, for example:
- a constructor injection
- a setter injection
- an interface injection
- using a contextualized lookup
In an original article by Martin Fowler, the first three different techniques are discussed. In a description about inversion of control types, the last one is mentioned. Often the contextualized lookup will be accomplished using a service locator.
More important than the applied technique, however, is the optimization of the purposes.
Read more about this topic: Inversion Of Control
Famous quotes containing the word techniques:
“It is easy to lose confidence in our natural ability to raise children. The true techniques for raising children are simple: Be with them, play with them, talk to them. You are not squandering their time no matter what the latest child development books say about purposeful play and cognitive learning skills.”
—Neil Kurshan (20th century)