This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Inversion Of Control With Smart Defaults
Skip to end of metadata
Go to start of metadata

Inversion Of Control With Smart Defaults

Inversion of Control is a powerful way of wiring together your beans so that the beans themselves can stay simple & be injected with their dependencies by their IoC container. One of the downsides of wring everything together using an IoC container like Spring is that you can often en up with huge amounts of XML configuring everything.

The Inversion Of Control With Smart Defaults pattern attempts to address this by providing in-built smart defaults into the system so that you only have to actually configure things which are not the default behavior.

For example with Camel you can configure a CamelContext; capable of creating on demand Component and Endpoint instances along with providing a powerful Type Converter registry all by using a single XML element...

<camelContext xmlns="">

If you explicitly want to configure the context; a component, an endpoint or dependent objects explicitly in XML you can; but all the common defaults are wired together for you.

  • No labels