Added inversion of control docs to Gitbook

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/fe94f555
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fe94f555
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fe94f555

Branch: refs/heads/master
Commit: fe94f55588ebde7db86182d40cfaa6aaf9335bd6
Parents: ef01a66
Author: Andrea Cosentino <[email protected]>
Authored: Sun Jul 31 11:20:10 2016 +0200
Committer: Andrea Cosentino <[email protected]>
Committed: Sun Jul 31 11:20:10 2016 +0200

----------------------------------------------------------------------
 docs/user-manual/en/SUMMARY.md                  |  2 +-
 ...nversion-of-control-with-smart-defaults.adoc | 30 ++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fe94f555/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 22a1db3..27a2798 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -36,12 +36,12 @@
     * [Expression](expression.adoc)
     * [Injector](injector.adoc)
     * [Intercept](intercept.adoc)
+    * [Inversion Of Control With Smart 
Defaults](inversion-of-control-with-smart-defaults.adoc)
     * [Registry](registry.adoc)
     * [RX](rx.adoc)
     * [Scala DSL](scala-dsl.adoc)
 
 <!--
-    * [Inversion Of Control With Smart Defaults](.adoc)
     * [Languages](.adoc)
     * [Lifecycle](.adoc)
     * [OnCompletion](.adoc)

http://git-wip-us.apache.org/repos/asf/camel/blob/fe94f555/docs/user-manual/en/inversion-of-control-with-smart-defaults.adoc
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/inversion-of-control-with-smart-defaults.adoc 
b/docs/user-manual/en/inversion-of-control-with-smart-defaults.adoc
new file mode 100644
index 0000000..0a928f0
--- /dev/null
+++ b/docs/user-manual/en/inversion-of-control-with-smart-defaults.adoc
@@ -0,0 +1,30 @@
+[[InversionOfControlWithSmartDefaults-InversionOfControlWithSmartDefaults]]
+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
+link:camelcontext.html[CamelContext]; capable of creating on demand
+link:component.html[Component] and link:endpoint.html[Endpoint]
+instances along with providing a powerful link:type-converter.html[Type
+Converter] registry all by using a single XML element...
+
+[source,java]
+---------------------------------------------------------------------
+<camelContext xmlns="http://activemq.apache.org/camel/schema/spring";>
+</camelContext>
+---------------------------------------------------------------------
+
+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.

Reply via email to