[jboss-cvs] JBossAS SVN: r66906 - in projects/microcontainer/trunk/docs/examples: User_Guide and 12 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 9 05:21:18 EST 2007


Author: newtonm
Date: 2007-11-09 05:21:17 -0500 (Fri, 09 Nov 2007)
New Revision: 66906

Added:
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/MBeanServerChecker.java
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoInjectee.java
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoName.java
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestService.java
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestServiceMBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-services.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/integrating/pom.xml
Removed:
   projects/microcontainer/trunk/docs/examples/build-common.xml
   projects/microcontainer/trunk/docs/examples/build.properties
   projects/microcontainer/trunk/docs/examples/log4j.properties
   projects/microcontainer/trunk/docs/examples/mbeans/
   projects/microcontainer/trunk/docs/examples/osgi/
   projects/microcontainer/trunk/docs/examples/readme.txt
Log:
Migrated examples from ant to Maven2.

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/pom.xml	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,18 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <parent>
+    <groupId>org.jboss.microcontainer.examples</groupId>
+    <artifactId>integrating</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>mbeans</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>MBeans</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/MBeanServerChecker.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/MBeanServerChecker.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/MBeanServerChecker.java	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,38 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.example.microcontainer.mbeans;
+
+import java.util.ArrayList;
+import javax.management.MBeanServerFactory;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MBeanServerChecker
+{
+   public void create()
+   {
+      ArrayList servers = MBeanServerFactory.findMBeanServer("jboss");
+      if (servers == null || servers.isEmpty())
+         throw new IllegalArgumentException("Only able to run this demo with MBeanServer present!");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoInjectee.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoInjectee.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoInjectee.java	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,33 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.example.microcontainer.mbeans;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class PojoInjectee
+{
+   public PojoName getName()
+   {
+      return new PojoName("SimplePojoInjectee");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoName.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoName.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/PojoName.java	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.example.microcontainer.mbeans;
+
+import java.io.Serializable;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class PojoName implements Serializable
+{
+   private static final long serialVersionUID = 2468887813576431620L;
+   private String name;
+
+   public PojoName(String name)
+   {
+      this.name = name;
+   }
+
+   public String getName()
+   {
+      return name;
+   }
+
+   public String toString()
+   {
+      return getName();
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestService.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestService.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestService.java	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,33 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.example.microcontainer.mbeans;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TestService implements TestServiceMBean
+{
+   public void setInjecteeName(PojoName name)
+   {
+      System.out.println(name);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestServiceMBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestServiceMBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/java/org/jboss/example/microcontainer/mbeans/TestServiceMBean.java	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,30 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.example.microcontainer.mbeans;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface TestServiceMBean
+{
+   public void setInjecteeName(PojoName name);
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:jboss:bean-deployer:2.0 bean-deployer_2_0.xsd"
+            xmlns="urn:jboss:bean-deployer:2.0">
+
+   <bean name="PojoInjectee" class="org.jboss.example.microcontainer.mbeans.PojoInjectee">
+      <depends>MBeanServerChecker</depends>
+   </bean>
+
+   <bean name="MBeanServerChecker" class="org.jboss.example.microcontainer.mbeans.MBeanServerChecker" />
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-services.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-services.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/mbeans/src/main/resources/META-INF/jboss-services.xml	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+
+   <mbean code="org.jboss.example.microcontainer.mbeans.TestService"
+      name="jboss.j2ee:service=MCExampleTestService"
+      xmbean-dd="">
+      <attribute name="InjecteeName"><inject bean="PojoInjectee" property="name"/></attribute>
+   </mbean>
+
+</server>
+

Added: projects/microcontainer/trunk/docs/examples/User_Guide/integrating/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/integrating/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/integrating/pom.xml	2007-11-09 10:21:17 UTC (rev 66906)
@@ -0,0 +1,43 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>integrating</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0.0</version>
+  <name></name>
+  <description></description>
+
+  <dependencyManagement>
+  </dependencyManagement>
+
+  <dependencies>
+  </dependencies>
+
+  <build>
+    <plugins> 
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+          <debug>true</debug>
+          <showDeprecation>true</showDeprecation>
+          <showWarnings>true</showWarnings>
+          <optimize>true</optimize>
+        </configuration>
+      </plugin>  
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>  
+         <configuration>
+           <archive>
+             <addMavenDescriptor>false</addMavenDescriptor>
+           </archive>
+         </configuration>
+       </plugin>
+    </plugins>
+  </build>
+
+</project>

Deleted: projects/microcontainer/trunk/docs/examples/build-common.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/build-common.xml	2007-11-09 10:02:21 UTC (rev 66905)
+++ projects/microcontainer/trunk/docs/examples/build-common.xml	2007-11-09 10:21:17 UTC (rev 66906)
@@ -1,142 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- ==========================================================================
-A template build file for building JBoss5 applications
-Requires ant1.6+
-
-Distributable under the LGL
-See the terms of license at gnu.org
-=========================================================================== -->
-<project name="build-common" default="usage">
-
-   <property name="examples.home" value=".."/>
-   <property file="${examples.home}/build.properties"/>
-   <property file="$(user.home}/build.properties"/>
-
-   <!-- ==========================================================================
-  Classpath
-  =========================================================================== -->
-   <path id="compile.classpath">
-
-      <pathelement location="build"/>
-      <fileset dir="${jboss.home}/lib">
-         <include name="*.jar"/>
-      </fileset>
-
-   </path>
-
-   <path id="run.classpath">
-
-      <fileset dir="dist">
-         <include name="*.jar"/>
-      </fileset>
-      <fileset dir="${jboss.home}/lib">
-         <include name="*.jar"/>
-      </fileset>
-      <fileset dir="${jboss.home}/lib/endorsed">
-         <include name="*.jar"/>
-      </fileset>
-
-   </path>
-
-   <!-- ==========================================================================
-  Compile the source
-  =========================================================================== -->
-   <target name="compile">
-
-      <mkdir dir="build"/>
-
-      <javac destdir="build"
-             debug="on"
-             deprecation="on"
-             optimize="on"
-             classpathref="compile.classpath">
-         <src path="src"/>
-      </javac>
-
-   </target>
-
-   <!-- ==========================================================================
-  Do the packaging
-  =========================================================================== -->
-   <target name="dist" depends="compile">
-
-      <copy todir="build">
-         <fileset dir="src/resources"/>
-      </copy>
-
-      <mkdir dir="dist"/>
-
-      <jar jarfile="dist/${ant.project.name}.jar" basedir="build"/>
-
-   </target>
-
-   <!-- ==========================================================================
-  Do the packaging
-  =========================================================================== -->
-   <target name="standalone.dist" depends="compile">
-
-      <copy todir="build">
-         <fileset dir="src/resources"/>
-         <fileset file="../log4j.properties"/>
-      </copy>
-
-      <mkdir dir="dist"/>
-
-      <jar jarfile="dist/${ant.project.name}.jar" basedir="build"/>
-
-   </target>
-
-   <!-- ==========================================================================
-  Deploy the package(s)
-  =========================================================================== -->
-   <target name="deploy" depends="dist">
-
-      <copy todir="${jboss.home}/server/${jboss.config}/deploy">
-         <fileset dir="dist"/>
-      </copy>
-
-   </target>
-
-
-   <!-- ==========================================================================
-  Undeploy the package(s)
-  =========================================================================== -->
-   <target name="undeploy">
-
-      <delete file="${jboss.home}/server/${jboss.config}/deploy/${ant.project.name}.jar"/>
-
-   </target>
-
-   <!-- ==========================================================================
-  Run standalone
-  =========================================================================== -->
-   <target name="run" depends="standalone.dist">
-
-      <java classname="org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap" fork="true">
-         <classpath refid="run.classpath"/>
-      </java>
-
-   </target>
-
-   <!-- ==========================================================================
-  Cleans the build environment
-  =========================================================================== -->
-   <target name="clean" depends="undeploy">
-
-      <delete dir="dist"/>
-      <delete dir="build"/>
-
-   </target>
-
-   <!-- ==========================================================================
-  Usage
-  =========================================================================== -->
-   <target name="usage">
-
-      <echo>This is a utility build file used by the other examples</echo>
-      <echo>cd into a subdirectory to run a specific example</echo>
-
-   </target>
-
-</project>

Deleted: projects/microcontainer/trunk/docs/examples/build.properties
===================================================================
--- projects/microcontainer/trunk/docs/examples/build.properties	2007-11-09 10:02:21 UTC (rev 66905)
+++ projects/microcontainer/trunk/docs/examples/build.properties	2007-11-09 10:21:17 UTC (rev 66906)
@@ -1,2 +0,0 @@
-jboss.home=/jboss/jboss-5.0.0.Beta2
-jboss.config=default

Deleted: projects/microcontainer/trunk/docs/examples/log4j.properties
===================================================================
--- projects/microcontainer/trunk/docs/examples/log4j.properties	2007-11-09 10:02:21 UTC (rev 66905)
+++ projects/microcontainer/trunk/docs/examples/log4j.properties	2007-11-09 10:21:17 UTC (rev 66906)
@@ -1,6 +0,0 @@
-log4j.rootLogger=DEBUG, stdout
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-# Pattern to output the caller's file name and line number.
-log4j.appender.stdout.layout.ConversionPattern=MC Examples %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n

Deleted: projects/microcontainer/trunk/docs/examples/readme.txt
===================================================================
--- projects/microcontainer/trunk/docs/examples/readme.txt	2007-11-09 10:02:21 UTC (rev 66905)
+++ projects/microcontainer/trunk/docs/examples/readme.txt	2007-11-09 10:21:17 UTC (rev 66906)
@@ -1,33 +0,0 @@
-Examples
-
-These examples show some of the simpler uses of the MicroContainer.
-Each example is in a subfolder with the following structure
-
-readme.txt - a short description of the example
-build.xml - the ant build script
-src/resources/META-INF/jboss-beans.xml - the MicroContainer configuration for the example
-src/main - the java source for the example
-
-To run each example, simply 
-> cd examples/<directory>
-> ant
-
-To run against the JBoss application server
-> <edit> build.properties {change to point at your jboss instance}
-> cd examples/<directory>
-> ant deploy
-followed by
-> ant undeploy
-to remove the deployment
-
-simple: a simple example to make sure you have everything working
-constructor: simple constructor configuration
-factory: construction using factories
-properties: property configuration
-injection: referencing other beans
-collections: creating collections
-lifecycle: the create/start/stop/destroy lifecycle
-locator: examples of how to use the microcontainer to create a locator
-
-This just skims the surface of the Microcontainer, showing the most common
-usecases. Other more complicated examples can be found in the tests (available from svn).
\ No newline at end of file




More information about the jboss-cvs-commits mailing list