[jboss-cvs] JBossAS SVN: r63500 - in projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en: modules and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 13 10:39:10 EDT 2007


Author: alesj
Date: 2007-06-13 10:39:10 -0400 (Wed, 13 Jun 2007)
New Revision: 63500

Added:
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.odg
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.pdf
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.png
Removed:
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.odg
Modified:
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/aop.xml
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/mbeans.xml
   projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.xml
Log:
MBeans, modules, images.

Copied: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.odg (from rev 63492, projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.odg)
===================================================================
(Binary files differ)


Property changes on: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.odg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.pdf
===================================================================
(Binary files differ)


Property changes on: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.pdf
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.png
===================================================================
(Binary files differ)


Property changes on: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/images/modules.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/aop.xml
===================================================================
--- projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/aop.xml	2007-06-13 14:06:50 UTC (rev 63499)
+++ projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/aop.xml	2007-06-13 14:39:10 UTC (rev 63500)
@@ -15,28 +15,7 @@
       or just plain POJO behaviour.
    </para>
 
-   <section>
-      <title>Deployment</title>
+   <para>AOP ...
+   </para>
 
-      <para>The
-         <varname>deployment</varname>
-         element acts as a container for many beans that are deployed together.
-      </para>
-
-      <programlisting>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-
-         &lt;!-- Deployment holds beans --&gt;
-         &lt;deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
-         xmlns="urn:jboss:bean-deployer"&gt;
-
-         &lt;!-- bean part of the deployment --&gt;
-         &lt;bean .../&gt;
-
-         &lt;!-- bean part of the deployment --&gt;
-         &lt;bean .../&gt;
-
-         &lt;/deployment&gt;</programlisting>
-   </section>
-
 </section>
\ No newline at end of file

Modified: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/mbeans.xml
===================================================================
--- projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/mbeans.xml	2007-06-13 14:06:50 UTC (rev 63499)
+++ projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/mbeans.xml	2007-06-13 14:39:10 UTC (rev 63500)
@@ -5,7 +5,40 @@
 <chapter id="mbeans">
    <title>MBeans extensions</title>
 
-   <para>
-      MBeans extensions ...
+   <para>In previous versions (pre 5.x) of JBoss Application Server core services were implemented as MBeans.
+      To make things a bit easier, not forcing the requrement for a direct implementation of the
+      DynamicMBean interface, we introduced
+      <ulink url="http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch2.chapter.html#d0e3460">XMBeans</ulink>.
+      But with the change of underlying Kernel, moving away from JMX MBeanServer to plain POJO Controller, we also
+      let the handling of the existing MBeans to the new Controller.
+      Apart from supporting all of the existing XMBean features, we also ported some of the rich features from the new
+      Microcontainer IoC model to the XBeans.
+      We'll show these features in the examples below.
    </para>
+
+   <programlisting>
+      &lt;mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+         &lt;attribute name="Attribute">
+            &lt;inject bean="TestName" property="getSomething" state="Instantiated"/>
+         &lt;/attribute>
+      &lt;/mbean>
+   </programlisting>
+
+   <para>Here we transparently add a dependency on a bean named TestName, which must be, in order to be injected,
+      in the Instantiated state. Once the dependency is satisfied, we actually don't inject the bean itself
+      into the attribute, but we inject the return value of getSomething method being executed on TestName bean instance.
+      Property and state attributes are optional, by default the dependant state is Installed.
+   </para>
+
+   <programlisting>
+      &lt;mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+         &lt;alias>BasicBean&lt;/alias>
+         &lt;alias>${system.basic.name}&lt;/alias>
+      &lt;/mbean>
+   </programlisting>
+
+   <para>Here we can see that a MBean can also have alias names.
+      When adding alias you can also use System property replacement.
+   </para>
+
 </chapter>

Deleted: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.odg
===================================================================
(Binary files differ)

Modified: projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.xml
===================================================================
--- projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.xml	2007-06-13 14:06:50 UTC (rev 63499)
+++ projects/microcontainer/trunk/docs/gettingstarted/src/docbkx/en/modules/modules.xml	2007-06-13 14:39:10 UTC (rev 63500)
@@ -5,16 +5,27 @@
 <chapter id="modules">
    <title>New subprojects</title>
 
-   <para>
-      Rewrite ...
+   <para>With the new Microcontainer 2.0.0 a lot of new features were added to the Microcontainer core to make
+      integration with new JBoss5 easier and cleaner. Some of the core aspects were entirely re-written.
+      You can see these changes in the subprojects / modules on the figure below.
    </para>
 
    <figure>
       <title>Module dependency</title>
       <mediaobject>
          <imageobject>
-            <imagedata fileref="modules.odg"/>
+            <imagedata fileref="../images/modules.png"/>
          </imageobject>
       </mediaobject>
    </figure>
+
+   <para>Here we can see the modules that make the whole Microcontainer architecture. Most of them are part of
+      Microcontainer project as subprojects, where MBeans resides in JBossAS project and VFS is a separate project.      
+   </para>
+
+   <para>AOP-MC-int and Spring-int are extension parts of the Core (Container, Dependency, Kernel). Using AOP-MC-int
+      features is a matter of configuration, where Spring-int is a simple addon.
+      All other modules are optional, but you must satisfy the dependencies presented to you by directed arrows.
+   </para>
+
 </chapter>




More information about the jboss-cvs-commits mailing list