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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 9 04:49:10 EST 2007


Author: newtonm
Date: 2007-11-09 04:49:09 -0500 (Fri, 09 Nov 2007)
New Revision: 66902

Added:
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/AnnotatedSimpleBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/EnvInitialContextFactory.java
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockJndiProvider.java
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockNameParser.java
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBeanLookup.java
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/dist.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/log4j.properties
   projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/Nameable.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/ObjectHolder.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/AnnotationChecker.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/Name.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/POJO.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/java/org/jboss/example/microcontainer/autowiring/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/java/org/jboss/example/microcontainer/classloader/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/microcontainer/collections/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/microcontainer/collections/ObjectPrinter.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/microcontainer/constructor/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/microcontainer/constructor/ConstructorBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Demander.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Starters.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/dist.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/FactoryCreatedBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/SingletonFactory.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/StaticFactory.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/microcontainer/injection/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/microcontainer/injection/InjectionBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/DeamonTimer.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/MyTimerTask.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/java/org/jboss/example/microcontainer/javabeans/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/microcontainer/lifecycle/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/microcontainer/lifecycle/LifecycleBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/ControllerLocator.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/HashtableLocator.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/Locator.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/SimpleBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/User.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/log4j.properties
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/microcontainer/properties/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/microcontainer/properties/PropertiesBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/microcontainer/simple/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/microcontainer/simple/SimpleBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/MCBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/SimpleBean.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/resources/META-INF/jboss-beans.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/pom.xml
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/Binder.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/PojoLookup.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/StaticBinder.java
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/resources/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/resources/META-INF/
   projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/resources/META-INF/jboss-beans.xml
Removed:
   projects/microcontainer/trunk/docs/examples/alias/
   projects/microcontainer/trunk/docs/examples/annotations/
   projects/microcontainer/trunk/docs/examples/autowiring/
   projects/microcontainer/trunk/docs/examples/classloader/
   projects/microcontainer/trunk/docs/examples/collections/
   projects/microcontainer/trunk/docs/examples/constructor/
   projects/microcontainer/trunk/docs/examples/demand/
   projects/microcontainer/trunk/docs/examples/factory/
   projects/microcontainer/trunk/docs/examples/injection/
   projects/microcontainer/trunk/docs/examples/installation/
   projects/microcontainer/trunk/docs/examples/javabeans/
   projects/microcontainer/trunk/docs/examples/lifecycle/
   projects/microcontainer/trunk/docs/examples/locator/
   projects/microcontainer/trunk/docs/examples/properties/
   projects/microcontainer/trunk/docs/examples/simple/
   projects/microcontainer/trunk/docs/examples/spring/
   projects/microcontainer/trunk/docs/examples/supply/
Modified:
   projects/microcontainer/trunk/docs/examples/User_Guide/auditAspect/pom.xml
Log:
Migrated examples from ant to Maven2.

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,26 @@
+<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>aopDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>aspects</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Aspects</name>
+  <description></description>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-aop-mc-int</artifactId>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/AnnotatedSimpleBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/AnnotatedSimpleBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/AnnotatedSimpleBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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.aspects;
+
+import java.io.Serializable;
+
+import org.jboss.aop.microcontainer.aspects.jndi.JndiBinding;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at JndiBinding(name = "beans/AnnotatedSimpleBean")
+public class AnnotatedSimpleBean implements Serializable
+{
+   public String toString()
+   {
+      return "I'm annotated SimpleBean.";
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/EnvInitialContextFactory.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/EnvInitialContextFactory.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/EnvInitialContextFactory.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * 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.aspects;
+
+import java.util.Hashtable;
+import java.util.List;
+import javax.management.MBeanServerFactory;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.naming.spi.InitialContextFactory;
+
+/**
+ * We check if we are in AS or standalone.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class EnvInitialContextFactory implements InitialContextFactory
+{
+   public Context getInitialContext(Hashtable<?, ?> env) throws NamingException
+   {
+      return isApplicationServer() ? new InitialContext(env) : new MockJndiProvider(env);
+   }
+
+   protected boolean isApplicationServer()
+   {
+      List servers = MBeanServerFactory.findMBeanServer("jboss");
+      return servers != null && servers.isEmpty() == false;
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockJndiProvider.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockJndiProvider.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockJndiProvider.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,217 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * 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.aspects;
+
+import java.io.IOException;
+import java.rmi.MarshalledObject;
+import java.util.Hashtable;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import javax.naming.Binding;
+import javax.naming.Context;
+import javax.naming.Name;
+import javax.naming.NameClassPair;
+import javax.naming.NameParser;
+import javax.naming.NamingEnumeration;
+import javax.naming.NamingException;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class MockJndiProvider implements Context
+{
+   private static Map<Object, Object> bindings = new ConcurrentHashMap<Object, Object>();
+   private Hashtable<?, ?> env;
+
+   MockJndiProvider(Hashtable<?, ?> env)
+   {
+      this.env = env;
+   }
+
+   public Object addToEnvironment(String propName, Object propVal) throws NamingException
+   {
+      return null;
+   }
+
+   public void bind(Name name, Object obj) throws NamingException
+   {
+      String sname = name.toString();
+      bind(sname, obj);
+   }
+
+   public void bind(String name, Object obj) throws NamingException
+   {
+      try
+      {
+         MarshalledObject mo = new MarshalledObject(obj);
+         bindings.put(name, mo);
+      }
+      catch(IOException e)
+      {
+         NamingException ex = new NamingException("Failed to bind name: "+name);
+         ex.setRootCause(e);
+         throw ex;
+      }
+   }
+
+   public void close() throws NamingException
+   {
+   }
+
+   public Name composeName(Name name, Name prefix) throws NamingException
+   {
+      return null;
+   }
+
+   public String composeName(String name, String prefix) throws NamingException
+   {
+      return null;
+   }
+
+   public Context createSubcontext(Name name) throws NamingException
+   {
+      return null;
+   }
+
+   public Context createSubcontext(String name) throws NamingException
+   {
+      return null;
+   }
+
+   public void destroySubcontext(Name name) throws NamingException
+   {
+   }
+
+   public void destroySubcontext(String name) throws NamingException
+   {
+
+   }
+
+   public Hashtable<?, ?> getEnvironment() throws NamingException
+   {
+      return env;
+   }
+
+   public String getNameInNamespace() throws NamingException
+   {
+      return null;
+   }
+
+   public NameParser getNameParser(Name name) throws NamingException
+   {
+      return new MockNameParser();
+   }
+
+   public NameParser getNameParser(String name) throws NamingException
+   {
+      return new MockNameParser();
+   }
+
+   public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
+   {
+      return null;
+   }
+
+   public NamingEnumeration<NameClassPair> list(String name) throws NamingException
+   {
+      return null;
+   }
+
+   public NamingEnumeration<Binding> listBindings(Name name) throws NamingException
+   {
+      return null;
+   }
+
+   public NamingEnumeration<Binding> listBindings(String name) throws NamingException
+   {
+      return null;
+   }
+
+   public Object lookup(Name name) throws NamingException
+   {
+      String sname = name.toString();
+      return lookup(sname);
+   }
+
+   public Object lookup(String name) throws NamingException
+   {
+      MarshalledObject mo = (MarshalledObject) bindings.get(name);
+      Object value = null;
+      if( mo != null )
+      {
+         try
+         {
+            value = mo.get();
+         }
+         catch(Exception e)
+         {
+            NamingException ex = new NamingException();
+            ex.setRootCause(e);
+            throw ex;
+         }
+      }
+      return value;
+   }
+
+   public Object lookupLink(Name name) throws NamingException
+   {
+      return null;
+   }
+
+   public Object lookupLink(String name) throws NamingException
+   {
+      return null;
+   }
+
+   public void rebind(Name name, Object obj) throws NamingException
+   {
+   }
+
+   public void rebind(String name, Object obj) throws NamingException
+   {
+      bindings.put(name, obj);
+   }
+
+   public Object removeFromEnvironment(String propName) throws NamingException
+   {
+      return null;
+   }
+
+   public void rename(Name oldName, Name newName) throws NamingException
+   {
+   }
+
+   public void rename(String oldName, String newName) throws NamingException
+   {
+   }
+
+   public void unbind(Name name) throws NamingException
+   {
+      unbind(name.toString());
+   }
+
+   public void unbind(String name) throws NamingException
+   {
+      bindings.remove(name);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockNameParser.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockNameParser.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/MockNameParser.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,22 @@
+package org.jboss.example.microcontainer.aspects;
+
+import java.util.Properties;
+import javax.naming.CompoundName;
+import javax.naming.Name;
+import javax.naming.NameParser;
+import javax.naming.NamingException;
+
+public class MockNameParser implements NameParser
+{
+   private static final Properties syntax = new Properties();
+
+   static
+   {
+      syntax.setProperty("jndi.syntax.direction", "flat");
+   }
+
+   public Name parse(String name) throws NamingException
+   {
+      return new CompoundName(name, syntax);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,35 @@
+/*
+* 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.aspects;
+
+import java.io.Serializable;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class SimpleBean implements Serializable
+{
+   public String toString()
+   {
+      return "I'm plain SimpleBean.";
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBeanLookup.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBeanLookup.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/java/org/jboss/example/microcontainer/aspects/SimpleBeanLookup.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,52 @@
+/*
+* 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.aspects;
+
+import java.util.Properties;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class SimpleBeanLookup
+{
+   private Properties env;
+
+   public String getName()
+   {
+      return getClass().getName();
+   }
+
+   public void setEnv(Properties env)
+   {
+      this.env = env;
+   }
+
+   public void start() throws Exception
+   {
+      Context context = new InitialContext(env);
+      System.out.println(context.lookup("beans/SimpleBean"));
+      System.out.println(context.lookup("beans/AnnotatedSimpleBean"));
+      System.out.println(context.lookup("beans/XmlAnnotatedSimpleBean"));
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/aspects/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <bean name="Repository" class="org.jboss.metadata.plugins.repository.basic.BasicMetaDataRepository"/>
+
+   <bean name="AspectManager" class="org.jboss.aop.AspectManager">
+      <constructor factoryClass="org.jboss.aop.AspectManager" factoryMethod="instance"/>
+   </bean>
+
+	<!-- Define the jndi binding advice -->
+   <beanfactory name="JndiAdvice" class="org.jboss.aop.microcontainer.aspects.jndi.JndiIntroduction">
+   	<property name="env">
+           <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
+              <entry>
+                 <key>java.naming.factory.initial</key>
+                 <value>org.jboss.example.microcontainer.aspects.EnvInitialContextFactory</value>
+              </entry>
+           </map>
+   	</property>
+   </beanfactory>
+
+   <bean name="JndiAspect" class="org.jboss.aop.microcontainer.beans.Aspect">
+      <property name="advice"><inject bean="JndiAdvice"/></property>
+      <property name="manager"><inject bean="AspectManager"/></property>
+   </bean>
+
+   <!-- Introduce the KernelControllerContextAware interface to the JndiBinding annotation -->
+   <bean name="JndiIntroduction" class="org.jboss.aop.microcontainer.beans.IntroductionBinding">
+      <property name="classes">@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding</property>
+      <property name="interfaces">
+         <list elementClass="java.lang.String">
+            <value>org.jboss.kernel.spi.dependency.KernelControllerContextAware</value>
+         </list>
+      </property>
+      <property name="manager"><inject bean="AspectManager"/></property>
+   </bean>
+
+   <!-- Apply the jndi binding to all KernelControllerContextAware interface callbacks -->
+   <bean name="JndiBinding" class="org.jboss.aop.microcontainer.beans.AspectBinding">
+      <property name="pointcut">execution(* $instanceof{org.jboss.kernel.spi.dependency.KernelControllerContextAware}->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))</property>
+      <property name="aspect"><inject bean="JndiAspect" property="definition"/></property>
+      <property name="manager"><inject bean="AspectManager"/></property>
+   </bean>
+
+   <bean name="Bean" class="org.jboss.example.microcontainer.aspects.SimpleBean">
+      <annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="beans/SimpleBean", aliases={"beans/XmlAnnotatedSimpleBean"})</annotation>
+   </bean>
+
+   <bean name="AnnotatedBean" class="org.jboss.example.microcontainer.aspects.AnnotatedSimpleBean" />
+
+   <bean name="lookup" class="org.jboss.example.microcontainer.aspects.SimpleBeanLookup">
+      <property name="env">
+           <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
+              <entry>
+                 <key>java.naming.factory.initial</key>
+                 <value>org.jboss.example.microcontainer.aspects.EnvInitialContextFactory</value>
+              </entry>
+           </map>
+      </property>
+      <demand>JndiBinding</demand>
+   </bean>
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/dist.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/dist.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/dist.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,29 @@
+<assembly>
+  <id>dist</id>
+  <formats>
+    <format>dir</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>target</directory>
+      <outputDirectory/>
+      <includes>
+        <include>*.jar</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+  <files>
+    <file>
+      <source>../log4j.properties</source>
+      <outputDirectory/>
+    </file>
+  </files>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>/lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+    </dependencySet>
+  </dependencySets>
+</assembly>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/log4j.properties
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/log4j.properties	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/log4j.properties	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,7 @@
+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 Example %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n

Added: projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/aopDevelopment/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,100 @@
+<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>aopDev</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0.0</version>
+  <name></name>
+  <description></description>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-kernel</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.aop</groupId>
+        <artifactId>jboss-aop</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-aop-mc-int</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+      <scope>runtime</scope>      
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-aop-mc-int</artifactId>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.aop</groupId>
+      <artifactId>jboss-aop</artifactId>
+      <scope>compile</scope>
+    </dependency>
+  </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>
+             <manifest>
+               <mainClass>org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap</mainClass>
+               <addClasspath>true</addClasspath>
+               <classpathPrefix>lib</classpathPrefix>
+             </manifest>
+             <manifestEntries>
+               <Class-Path>.</Class-Path>
+             </manifestEntries>
+           </archive>
+         </configuration>
+       </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>../dist.xml</descriptor>
+          </descriptors>
+          <finalName>${pom.artifactId}</finalName>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>attached</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Modified: projects/microcontainer/trunk/docs/examples/User_Guide/auditAspect/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/auditAspect/pom.xml	2007-11-09 09:30:43 UTC (rev 66901)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/auditAspect/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -11,17 +11,17 @@
 
   <dependencies>
     <dependency>
+      <groupId>org.jboss.aop</groupId>
+      <artifactId>jboss-aop</artifactId>
+      <version>2.0.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>3.8.1</version>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>org.jboss.aop</groupId>
-      <artifactId>jboss-aop</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
-      <scope>compile</scope>
-    </dependency>
   </dependencies>
     
   <build>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>alias</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Alias</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/Nameable.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/Nameable.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/Nameable.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,59 @@
+/*
+* 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.alias;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import org.jboss.kernel.spi.dependency.CreateKernelControllerContextAware;
+import org.jboss.kernel.spi.dependency.KernelControllerContext;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class Nameable implements CreateKernelControllerContextAware
+{
+   private Set<Object> names;
+
+   public void setKernelControllerContext(KernelControllerContext context) throws Exception
+   {
+      names = new HashSet<Object>();
+      names.add(context.getName());
+      names.addAll(context.getAliases());
+   }
+
+   public void unsetKernelControllerContext(KernelControllerContext context) throws Exception
+   {
+      names.clear();
+      names = null;
+   }
+
+   public boolean contains(Object name)
+   {
+      return names != null && names.contains(name);
+   }
+
+   public String toString()
+   {
+      return names != null ? names.toString() : "<empty>";
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/ObjectHolder.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/ObjectHolder.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/java/org/jboss/example/microcontainer/alias/ObjectHolder.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,55 @@
+/*
+* 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.alias;
+
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class ObjectHolder
+{
+   private Nameable nameable;
+   private Set<Nameable> names;
+
+   public ObjectHolder(Nameable nameable)
+   {
+      this.nameable = nameable;
+   }
+
+   public void setNameable(Nameable nameable)
+   {
+      this.nameable = nameable;
+   }
+
+   public void setNames(Set<Nameable> names)
+   {
+      this.names = names;
+   }
+
+   public void validate()
+   {
+      System.out.println("I'm nameable: " + nameable);
+      System.out.println("Names size: " + names.size());
+      System.out.println("Names: " + names);     
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/alias/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,28 @@
+<?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="ObjectHolder" class="org.jboss.example.microcontainer.alias.ObjectHolder">
+      <constructor><parameter><inject bean="viaconst"/></parameter></constructor>
+      <property name="nameable"><inject bean="viaprop"/></property>
+      <property name="names">
+         <set>
+            <inject bean="vianame"/>
+            <inject bean="viaset"/>
+            <inject bean="viaextalias"/>
+         </set>
+      </property>
+      <start method="validate"/>
+   </bean>
+
+   <bean name="vianame" class="org.jboss.example.microcontainer.alias.Nameable">
+      <alias>viaprop</alias>
+      <alias>viaconst</alias>
+      <alias>viaset</alias>
+   </bean>
+
+   <alias name="vianame">viaextalias</alias>
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,26 @@
+<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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>annotations</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Annotations</name>
+  <description></description>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+      <scope>compile</scope>      
+    </dependency>
+  </dependencies>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/AnnotationChecker.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/AnnotationChecker.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/AnnotationChecker.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,90 @@
+/*
+* 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.annotations;
+
+import java.lang.annotation.Annotation;
+import java.util.Map;
+import java.util.Set;
+
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.spi.dependency.KernelController;
+import org.jboss.kernel.spi.dependency.KernelControllerContext;
+import org.jboss.kernel.spi.metadata.KernelMetaDataRepository;
+import org.jboss.metadata.spi.MetaData;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class AnnotationChecker
+{
+   private Kernel kernel;
+   private Map<String, Set<String>> checker;
+
+   public void setKernel(Kernel kernel)
+   {
+      this.kernel = kernel;
+   }
+
+   public void setCheckerMap(Map<String, Set<String>> checker)
+   {
+      this.checker = checker;
+   }
+
+   public void check()
+   {
+      KernelController controller = kernel.getController();
+      for(String key : checker.keySet())
+      {
+         KernelControllerContext context = (KernelControllerContext)controller.getInstalledContext(key);
+         Set<String> annotations = checker.get(key);
+         for(String annotation : annotations)
+         {
+            System.out.println(
+                  "Annotation " + annotation + (check(context, annotation) ?
+                  " exists " : " doesn't exist ") + " on " + context.getTarget().getClass().getSuperclass()
+            );
+         }
+      }
+   }
+
+   public boolean check(KernelControllerContext context, String annotation)
+   {
+      KernelMetaDataRepository repository = kernel.getMetaDataRepository();
+      MetaData retrieval = repository.getMetaData(context);
+      if (retrieval != null)
+      {
+         Annotation[] annotations = retrieval.getAnnotations();
+         if (annotations != null && annotations.length > 0)
+         {
+            for (Annotation annItem : annotations)
+            {
+               if (annItem.annotationType().getName().equals(annotation))
+               {
+                  return true;
+               }
+            }
+         }
+      }
+      return false;
+   }
+
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/Name.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/Name.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/Name.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,37 @@
+/*
+* 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.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target(ElementType.TYPE)
+public @interface Name
+{
+   String value();
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/POJO.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/POJO.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/java/org/jboss/example/microcontainer/annotations/POJO.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,29 @@
+/*
+* 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.annotations;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class POJO
+{
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/annotations/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,29 @@
+<?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="AnnotationChecker" class="org.jboss.example.microcontainer.annotations.AnnotationChecker">
+      <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+      <property name="checkerMap">
+         <map keyClass="java.lang.String">
+            <entry>
+               <key>pojo</key>
+               <value>
+                  <set elementClass="java.lang.String">
+                     <value>org.jboss.example.microcontainer.annotations.Name</value>
+                  </set>
+               </value>
+            </entry>
+         </map>
+      </property>
+      <start method="check"/>
+      <demand>pojo</demand>
+   </bean>
+
+   <bean name="pojo" class="org.jboss.example.microcontainer.annotations.POJO">
+      <annotation>@org.jboss.example.microcontainer.annotations.Name("pojo")</annotation>
+   </bean>
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/autowiring/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>autowiring</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Autowiring</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/classloader/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>classloader</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Classloader</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>collections</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Collections</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/microcontainer/collections/ObjectPrinter.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/microcontainer/collections/ObjectPrinter.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/java/org/jboss/example/microcontainer/collections/ObjectPrinter.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,77 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.collections;
+
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Map.Entry;
+
+/**
+ * A ObjectPrinter.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class ObjectPrinter
+{
+   String context;
+   
+   public ObjectPrinter(String context)
+   {
+      this.context = context;
+   }
+   
+   public void setPrint(Object print)
+   {
+      if (print != null)
+      {
+         System.out.println(context + " type=" + print.getClass().getName());
+         if (print instanceof Collection)
+         {
+            for (Iterator i = ((Collection) print).iterator(); i.hasNext();)
+            {
+               Object object = i.next();
+               System.out.println("value='" + object + "' type=" + object.getClass().getName());
+               
+            }
+         }
+         else if (print instanceof Map)
+         {
+            for (Iterator i = ((Map) print).entrySet().iterator(); i.hasNext();)
+            {
+               Entry entry = (Entry) i.next();
+               Object key = entry.getKey();
+               Object value = entry.getValue();
+               System.out.println("key='" + key + "' type=" + key.getClass().getName());
+               System.out.println("value='" + value + "' type=" + value.getClass().getName());
+               
+            }
+         }
+         else
+         {
+            System.out.println("value='" + print + "'");
+         }
+         System.out.println();
+      }
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/collections/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,99 @@
+<?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="PrintCollection" class="org.jboss.example.microcontainer.collections.ObjectPrinter">
+      <constructor><parameter>Collection</parameter></constructor>
+      <property name="print">
+
+         <collection elementClass="java.lang.String">
+            <value>Value of type elementClass</value>
+            <value class="java.lang.Integer">4</value>
+         </collection>
+
+      </property>
+   </bean>
+
+   <bean name="PrintList" class="org.jboss.example.microcontainer.collections.ObjectPrinter">
+      <constructor><parameter>List</parameter></constructor>
+      <property name="print">
+
+         <list elementClass="java.lang.String">
+            <value>Value of type elementClass</value>
+            <value class="java.lang.Integer">4</value>
+         </list>
+
+      </property>
+   </bean>
+
+   <bean name="PrintLinkedList" class="org.jboss.example.microcontainer.collections.ObjectPrinter">
+      <constructor><parameter>LinkedList</parameter></constructor>
+      <property name="print">
+
+         <list class="java.util.LinkedList" elementClass="java.lang.String">
+            <value>Value of type elementClass</value>
+            <value class="java.lang.Integer">4</value>
+         </list>
+
+      </property>
+   </bean>
+
+   <bean name="PrintSet" class="org.jboss.example.microcontainer.collections.ObjectPrinter">
+      <constructor><parameter>Set</parameter></constructor>
+      <property name="print">
+
+         <set elementClass="java.lang.String">
+            <value>Value of type elementClass</value>
+            <value class="java.lang.Integer">4</value>
+         </set>
+
+      </property>
+   </bean>
+
+   <bean name="PrintMap" class="org.jboss.example.microcontainer.collections.ObjectPrinter">
+      <constructor><parameter>Map</parameter></constructor>
+      <property name="print">
+
+         <map keyClass="java.lang.String" valueClass="java.lang.String">
+            <entry>
+               <key>Key1 of type keyClass</key>
+               <value>Value1 of type valueClass</value>
+            </entry>
+            <entry>
+               <key>Key2 of type keyClass</key>
+               <value class="java.lang.Integer">4</value>
+            </entry>
+            <entry>
+               <key class="java.lang.Long">4</key>
+               <value>Value of type valueClass</value>
+            </entry>
+         </map>
+
+      </property>
+   </bean>
+
+   <bean name="PrintHashtable" class="org.jboss.example.microcontainer.collections.ObjectPrinter">
+      <constructor><parameter>Hashtable</parameter></constructor>
+      <property name="print">
+
+         <map class="java.util.Hashtable" keyClass="java.lang.String" valueClass="java.lang.String">
+            <entry>
+               <key>Key1 of type keyClass</key>
+               <value>Value1 of type valueClass</value>
+            </entry>
+            <entry>
+               <key>Key2 of type keyClass</key>
+               <value class="java.lang.Integer">4</value>
+            </entry>
+            <entry>
+               <key class="java.lang.Long">4</key>
+               <value>Value of type valueClass</value>
+            </entry>
+         </map>
+
+      </property>
+   </bean>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>constructor</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Constructor</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/microcontainer/constructor/ConstructorBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/microcontainer/constructor/ConstructorBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/java/org/jboss/example/microcontainer/constructor/ConstructorBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.constructor;
+
+/**
+ * A ConstructorBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class ConstructorBean
+{
+   public ConstructorBean(int integer)
+   {
+      System.out.println("ConstructorBean(int) with " + integer);
+   }
+
+   public ConstructorBean(String string, int integer)
+   {
+      System.out.println("ConstructorBean(String, int) with " + string + " and " + integer);
+   }
+
+   public ConstructorBean(String string, long l)
+   {
+      System.out.println("ConstructorBean(String, long) with " + string + " and " + l);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/constructor/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,20 @@
+<?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="Integer" class="org.jboss.example.microcontainer.constructor.ConstructorBean">
+      <constructor>
+         <parameter>4</parameter>
+      </constructor>
+   </bean>
+
+   <bean name="StringLong" class="org.jboss.example.microcontainer.constructor.ConstructorBean">
+      <constructor>
+         <parameter>a string</parameter>
+         <parameter class="long">10</parameter>
+      </constructor>
+   </bean>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>demand</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Demand</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Demander.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Demander.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Demander.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,35 @@
+/*
+* 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.demand;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class Demander
+{
+   public static int counter = 0;
+
+   public void start()
+   {
+      System.out.println(counter != 2 ? "I demanded 2 beans!" : "I'm fine. :-)");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Starters.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Starters.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/java/org/jboss/example/microcontainer/demand/Starters.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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.demand;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class Starters
+{
+   public void start()
+   {
+      System.out.println("I'm started: " + this);   
+   }
+
+   public void installed()
+   {
+      Demander.counter++;
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/demand/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,20 @@
+<?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="demander" class="org.jboss.example.microcontainer.demand.Demander">
+      <demand state="Create">guice</demand>
+      <demand state="Create">coke</demand>
+   </bean>
+
+   <bean name="guice" class="org.jboss.example.microcontainer.demand.Starters">
+      <install method="installed"/>
+   </bean>
+
+   <bean name="coke" class="org.jboss.example.microcontainer.demand.Starters">
+      <install method="installed"/>
+   </bean>
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/dist.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/dist.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/dist.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,29 @@
+<assembly>
+  <id>dist</id>
+  <formats>
+    <format>dir</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>target</directory>
+      <outputDirectory/>
+      <includes>
+        <include>*.jar</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+  <files>
+    <file>
+      <source>../log4j.properties</source>
+      <outputDirectory/>
+    </file>
+  </files>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>/lib</outputDirectory>
+      <unpack>false</unpack>
+      <scope>runtime</scope>
+    </dependencySet>
+  </dependencySets>
+</assembly>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>factory</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Factory</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/FactoryCreatedBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/FactoryCreatedBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/FactoryCreatedBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,36 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.factory;
+
+/**
+ * A FactoryCreatedBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class FactoryCreatedBean
+{
+   /* package */ FactoryCreatedBean(String where)
+   {
+      System.out.println("FactoryCreatedBean() from " + where);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/SingletonFactory.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/SingletonFactory.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/SingletonFactory.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.factory;
+
+/**
+ * A singleton factory.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class SingletonFactory
+{
+   private static SingletonFactory singleton;
+   
+   public synchronized static SingletonFactory getInstance()
+   {
+      if (singleton == null)
+         singleton = new SingletonFactory();
+      return singleton;
+   }
+   
+   public FactoryCreatedBean createBean()
+   {
+      return new FactoryCreatedBean("SingletonFactory.createBean()");
+   }
+   
+   private SingletonFactory()
+   {
+      System.out.println("SingletonFactory()");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/StaticFactory.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/StaticFactory.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/java/org/jboss/example/microcontainer/factory/StaticFactory.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,41 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.factory;
+
+/**
+ * A static factory.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class StaticFactory
+{
+   public static FactoryCreatedBean createBean()
+   {
+      return new FactoryCreatedBean("StaticFactory.createBean()");
+   }
+   
+   private StaticFactory()
+   {
+      System.out.println("YOU SHOULD NOT SEE THIS!");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/factory/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,21 @@
+<?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="StaticFactoryCreatedBean" class="org.jboss.example.microcontainer.factory.FactoryCreatedBean">
+      <constructor factoryMethod="createBean" factoryClass="org.jboss.example.microcontainer.factory.StaticFactory"/>
+   </bean>
+
+   <bean name="SingletonFactory" class="org.jboss.example.microcontainer.factory.SingletonFactory">
+      <constructor factoryMethod="getInstance" factoryClass="org.jboss.example.microcontainer.factory.SingletonFactory"/>
+   </bean>
+
+   <bean name="SingletonFactoryCreatedBean" class="org.jboss.example.microcontainer.factory.FactoryCreatedBean">
+      <constructor factoryMethod="createBean">
+         <factory bean="SingletonFactory"/>
+      </constructor>
+   </bean>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>injection</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Injection</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/microcontainer/injection/InjectionBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/microcontainer/injection/InjectionBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/java/org/jboss/example/microcontainer/injection/InjectionBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,54 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.injection;
+
+/**
+ * A PropertiesBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class InjectionBean
+{
+   String name;
+   
+   public InjectionBean(String name)
+   {
+      this.name = name;
+      System.out.println("InjectionBean() " + this);
+   }
+
+   public String toString()
+   {
+      return name;
+   }
+   
+   public void setHost(String host)
+   {
+      System.out.println("setHost: " + host + " on " + this);
+   }
+   
+   public void setOther(InjectionBean other)
+   {
+      System.out.println("setOther: " + other + " on " + this);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/injection/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,41 @@
+<?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="URL" class="java.net.URL">
+      <constructor>
+         <parameter>http://www.jboss.org/index.html</parameter>
+      </constructor>
+   </bean>
+
+   <bean name="InjectionBean1" class="org.jboss.example.microcontainer.injection.InjectionBean">
+      <constructor>
+         <parameter>InjectionBean1</parameter>
+      </constructor>
+      <property name="host"><inject bean="URL" property="host"/></property>
+   </bean>
+
+   <bean name="InjectionBean2" class="org.jboss.example.microcontainer.injection.InjectionBean">
+      <constructor>
+         <parameter>InjectionBean2</parameter>
+      </constructor>
+      <property name="other"><inject bean="InjectionBean1"/></property>
+   </bean>
+
+   <bean name="Circular1" class="org.jboss.example.microcontainer.injection.InjectionBean">
+      <constructor>
+         <parameter>Circular1</parameter>
+      </constructor>
+      <property name="other"><inject bean="Circular2"/></property>
+   </bean>
+
+   <bean name="Circular2" class="org.jboss.example.microcontainer.injection.InjectionBean">
+      <constructor>
+         <parameter>Circular2</parameter>
+      </constructor>
+      <property name="other"><inject bean="Circular1" state="Instantiated"/></property>
+   </bean>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>installation</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Installation</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/DeamonTimer.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/DeamonTimer.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/DeamonTimer.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,41 @@
+/*
+* 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.installation;
+
+import java.util.Timer;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class DeamonTimer extends Timer
+{
+   public DeamonTimer()
+   {
+      super(true);
+   }
+
+   public void cancel()
+   {
+      System.out.println("Canceling timer: " + this);
+      super.cancel();
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/MyTimerTask.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/MyTimerTask.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/java/org/jboss/example/microcontainer/installation/MyTimerTask.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,40 @@
+/*
+* 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.installation;
+
+import java.util.TimerTask;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MyTimerTask extends TimerTask
+{
+   public MyTimerTask()
+   {
+      System.out.println("Creating MyTimerTask [" + this + "]");
+   }
+
+   public void run()
+   {
+      System.out.println("Running timer task: " + this);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/installation/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,20 @@
+<?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="Task" class="org.jboss.example.microcontainer.installation.MyTimerTask">
+      <install bean="Timer" method="schedule">
+         <parameter><this/></parameter>
+         <parameter class="long">100</parameter>
+         <parameter class="long">10000</parameter>
+      </install>
+      <uninstall method="cancel"/>
+   </bean>
+
+   <bean name="Timer" class="org.jboss.example.microcontainer.installation.DeamonTimer">
+      <uninstall method="cancel"/>
+   </bean>
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/javabeans/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>javabeans</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Javabeans</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>lifecycle</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Lifecycle</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/microcontainer/lifecycle/LifecycleBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/microcontainer/lifecycle/LifecycleBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/java/org/jboss/example/microcontainer/lifecycle/LifecycleBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,64 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.lifecycle;
+
+/**
+ * A Lifecycle Bean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class LifecycleBean
+{
+   String name;
+   
+   public LifecycleBean(String name)
+   {
+      this.name = name;
+      System.out.println("LifecycleBean() " + this);
+   }
+   
+   public void create()
+   {
+      System.out.println("create: " + this);
+   }
+   
+   public void start()
+   {
+      System.out.println("start: " + this);
+   }
+   
+   public void stop()
+   {
+      System.out.println("stop: " + this);
+   }
+   
+   public void destroy()
+   {
+      System.out.println("destroy: " + this);
+   }
+
+   public String toString()
+   {
+      return name;
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/lifecycle/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,20 @@
+<?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="Lifecycle1" class="org.jboss.example.microcontainer.lifecycle.LifecycleBean">
+      <constructor>
+         <parameter>Lifecycle1</parameter>
+      </constructor>
+      <depends>Lifecycle2</depends>
+   </bean>
+
+   <bean name="Lifecycle2" class="org.jboss.example.microcontainer.lifecycle.LifecycleBean">
+      <constructor>
+         <parameter>Lifecycle2</parameter>
+      </constructor>
+   </bean>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,26 @@
+<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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>locator</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Locator</name>
+  <description></description>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+      <scope>compile</scope>      
+    </dependency>
+  </dependencies>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/ControllerLocator.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/ControllerLocator.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/ControllerLocator.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,51 @@
+/*
+* 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.locator;
+
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.kernel.spi.dependency.KernelController;
+
+/**
+ * A locator that uses the kernel controller.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 40465 $
+ */
+public class ControllerLocator implements Locator
+{
+   private KernelController controller;
+
+   public void setController(KernelController controller)
+   {
+      this.controller = controller;
+   }
+
+   public Object locate(String name)
+   {
+      if (controller == null)
+         return null;
+      ControllerContext context = controller.getInstalledContext(name);
+      if (context == null)
+         return null;
+      return context.getTarget();
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/HashtableLocator.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/HashtableLocator.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/HashtableLocator.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,58 @@
+/*
+* 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.locator;
+
+import java.util.Hashtable;
+
+/**
+ * A locator that uses a hashtable.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 40465 $
+ */
+public class HashtableLocator implements Locator
+{
+   private static final HashtableLocator singleton = new HashtableLocator();
+
+   private Hashtable locations;
+
+   public static HashtableLocator getLocator()
+   {
+      return singleton;
+   }
+   
+   private HashtableLocator ()
+   {
+   }
+
+   public void setLocations(Hashtable locations)
+   {
+      this.locations = locations;
+   }
+
+   public Object locate(String name)
+   {
+      if (locations == null)
+         return null;
+      return locations.get(name);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/Locator.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/Locator.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/Locator.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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.locator;
+
+/**
+ * Locator.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 40465 $
+ */
+public interface Locator
+{
+   Object locate(String name);
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/SimpleBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/SimpleBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/SimpleBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,47 @@
+/*
+* 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.locator;
+
+/**
+ * A SimpleBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 40465 $
+ */
+public class SimpleBean
+{
+   private String text;
+
+   public SimpleBean()
+   {
+   }
+
+   public String getText()
+   {
+      return text;
+   }
+
+   public void setText(String text)
+   {
+      this.text = text;
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/User.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/User.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/java/org/jboss/example/microcontainer/locator/User.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,60 @@
+/*
+* 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.locator;
+
+/**
+ * User of a locator
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 40465 $
+ */
+public class User
+{
+   private Locator locator;
+
+   public Locator getLocator()
+   {
+      return locator;
+   }
+
+   public void setLocator(Locator locator)
+   {
+      this.locator = locator;
+   }
+   
+   public void create()
+   {
+      if (locator == null)
+         throw new IllegalStateException("Locator is not set");
+
+      System.out.println("=============================================================");
+      System.out.println("Using locator: " + locator);
+      System.out.println();
+      
+      SimpleBean bean = (SimpleBean) locator.locate("Simple1");
+      System.out.println("SimpleBean1 text=" + bean.getText());
+
+      bean = (SimpleBean) locator.locate("Simple2");
+      System.out.println("SimpleBean2 text=" + bean.getText());
+      System.out.println("=============================================================");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/locator/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,43 @@
+<?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="Simple1" class="org.jboss.example.microcontainer.locator.SimpleBean">
+      <property name="text">Simple1</property>
+   </bean>
+      
+   <bean name="Simple2" class="org.jboss.example.microcontainer.locator.SimpleBean">
+      <property name="text">Simple2</property>
+   </bean>
+      
+   <bean name="HashtableLocator" class="org.jboss.example.microcontainer.locator.HashtableLocator">
+      <constructor factoryMethod="getLocator" factoryClass="org.jboss.example.microcontainer.locator.HashtableLocator"/>
+      <property name="locations">
+         <map class="java.util.Hashtable" keyClass="java.lang.String" valueClass="java.lang.Object">
+            <entry>
+               <key>Simple1</key>
+               <value><inject bean="Simple1"/></value>
+            </entry>
+            <entry>
+               <key>Simple2</key>
+               <value><inject bean="Simple2"/></value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+      
+   <bean name="HashtableLocatorUser" class="org.jboss.example.microcontainer.locator.User">
+      <property name="locator"><inject bean="HashtableLocator"/></property>
+   </bean>
+      
+   <bean name="ControllerLocator" class="org.jboss.example.microcontainer.locator.ControllerLocator">
+      <property name="controller"><inject bean="jboss.kernel:service=KernelController"/></property>
+   </bean>
+      
+   <bean name="ControllerLocatorUser" class="org.jboss.example.microcontainer.locator.User">
+      <property name="locator"><inject bean="ControllerLocator"/></property>
+   </bean>
+
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/log4j.properties
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/log4j.properties	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/log4j.properties	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,7 @@
+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 Example %5p [%d{dd-MM-yyyy HH:mm:ss}] %c{1} - %m%n

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,85 @@
+<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>pojoDev</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0.0</version>
+  <name></name>
+  <description></description>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-kernel</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.jboss.microcontainer</groupId>
+        <artifactId>jboss-spring-int</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+      <scope>runtime</scope>
+    </dependency>
+  </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>
+             <manifest>
+               <mainClass>org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap</mainClass>
+               <addClasspath>true</addClasspath>
+               <classpathPrefix>lib</classpathPrefix>
+             </manifest>
+             <manifestEntries>
+               <Class-Path>.</Class-Path>
+             </manifestEntries>
+           </archive>
+         </configuration>
+       </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>../dist.xml</descriptor>
+          </descriptors>
+          <finalName>${pom.artifactId}</finalName>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>attached</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>properties</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Properties</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/microcontainer/properties/PropertiesBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/microcontainer/properties/PropertiesBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/java/org/jboss/example/microcontainer/properties/PropertiesBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,58 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.properties;
+
+import java.net.URL;
+
+/**
+ * A PropertiesBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class PropertiesBean
+{
+   public PropertiesBean()
+   {
+      System.out.println("PropertiesBean()");
+   }
+   
+   public void setTitle(String title)
+   {
+      System.out.println("setTitle: " + title);
+   }
+   
+   public void setSubTitle(String subTitle)
+   {
+      System.out.println("setSubTitle: " + subTitle);
+   }
+   
+   public void setLink(URL url)
+   {
+      System.out.println("setLink: " + url);
+   }
+   
+   public void setNumber(Number number)
+   {
+      System.out.println("setNumber: " + number + " type=" + number.getClass().getName());
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/properties/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,14 @@
+<?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="PropertiesBean" class="org.jboss.example.microcontainer.properties.PropertiesBean">
+      <property name="title">JBoss Microcontainer property example</property>
+      <property name="subTitle"><null/></property>
+      <property name="link">http://www.jboss.org</property>
+      <property name="number" class="java.lang.Long">4</property>
+   </bean>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>simple</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Simple</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/microcontainer/simple/SimpleBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/microcontainer/simple/SimpleBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/java/org/jboss/example/microcontainer/simple/SimpleBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,36 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, 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.simple;
+
+/**
+ * A SimpleBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class SimpleBean
+{
+   public SimpleBean()
+   {
+      System.out.println("SimpleBean() constructor");
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/simple/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,9 @@
+<?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="Simple" class="org.jboss.example.microcontainer.simple.SimpleBean"/>
+      
+</deployment>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,26 @@
+<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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>spring</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Spring</name>
+  <description></description>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-spring-int</artifactId>
+      <scope>runtime</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/MCBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/MCBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/MCBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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.spring;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MCBean
+{
+   public void setSimpleBean(SimpleBean simpleBean)
+   {
+      System.out.println("Setting simple bean: " + simpleBean);
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/SimpleBean.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/SimpleBean.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/java/org/jboss/example/microcontainer/spring/SimpleBean.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,123 @@
+/*
+* 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.spring;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class SimpleBean
+{
+
+   private int x;
+   private double y;
+   private String s;
+   private List mylist;
+   private Set myset;
+   private Map mymap;
+   private MCBean refBean;
+
+   public SimpleBean()
+   {
+   }
+
+   public SimpleBean(int x, double y, String s)
+   {
+      this.x = x;
+      this.y = y;
+      this.s = s;
+   }
+
+   public int getX()
+   {
+      return x;
+   }
+
+   public double getY()
+   {
+      return y;
+   }
+
+   public String getS()
+   {
+      return s;
+   }
+
+   public List getMylist()
+   {
+      return mylist;
+   }
+
+   public void setMylist(List mylist)
+   {
+      this.mylist = mylist;
+   }
+
+   public Set getMyset()
+   {
+      return myset;
+   }
+
+   public void setMyset(Set myset)
+   {
+      this.myset = myset;
+   }
+
+   public Map getMymap()
+   {
+      return mymap;
+   }
+
+   public void setMymap(Map mymap)
+   {
+      this.mymap = mymap;
+   }
+
+   public MCBean getRefBean()
+   {
+      return refBean;
+   }
+
+   public void setRefBean(MCBean refBean)
+   {
+      System.out.println("Setting ref bean: " + refBean);
+      refBean.setSimpleBean(this);
+      this.refBean = refBean;
+   }
+
+   public String toString()
+   {
+      StringBuilder builder = new StringBuilder();
+      builder.append(x).append(",");
+      builder.append(y).append(",");
+      builder.append(s).append(",");
+      builder.append(mylist).append(",");
+      builder.append(myset).append(",");
+      builder.append(mymap);
+      builder.append(refBean);
+      return builder.toString();
+   }
+
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/spring/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<beans xmlns="urn:jboss:spring-beans:2.0">
+
+   <bean id="testBean" class="org.jboss.example.microcontainer.spring.SimpleBean">
+      <constructor-arg index="2">
+         <value>SpringBean</value>
+      </constructor-arg>
+      <constructor-arg index="0">
+         <value>1</value>
+      </constructor-arg>
+      <constructor-arg index="1">
+         <value>3.14159</value>
+      </constructor-arg>
+      <property name="mylist">
+         <list value-type="java.lang.String">
+            <value>onel</value>
+            <value>twol</value>
+            <value>threel</value>
+         </list>
+      </property>
+      <property name="myset">
+         <set value-type="java.lang.String">
+            <value>ones</value>
+            <value>twos</value>
+            <value>ones</value>
+         </set>
+      </property>
+      <property name="mymap">
+         <map>
+            <entry>
+               <key>
+                  <value>test_key</value>
+               </key>
+               <value>myvalue</value>
+            </entry>
+         </map>
+      </property>
+      <property><ref bean="mcBean"/></property>
+   </bean>
+
+   <bean xmlns="urn:jboss:bean-deployer:2.0" name="mcBean" class="org.jboss.example.microcontainer.spring.MCBean"/>
+
+   <!-- TODO other features -->
+
+</beans>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/pom.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/pom.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/pom.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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>pojoDev</artifactId>
+    <version>1.0.0</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.microcontainer.examples</groupId>
+  <artifactId>supply</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0.0</version>
+  <name>Supply</name>
+  <description></description>
+
+</project>

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/Binder.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/Binder.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/Binder.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -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.supply;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface Binder
+{
+   Object getBindedObject();
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/PojoLookup.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/PojoLookup.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/PojoLookup.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,34 @@
+/*
+* 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.supply;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class PojoLookup
+{
+   public void start()
+   {
+      Binder binder = StaticBinder.getInstance();
+      System.out.println("Got it, " + binder.getBindedObject());
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/StaticBinder.java
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/StaticBinder.java	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/java/org/jboss/example/microcontainer/supply/StaticBinder.java	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,47 @@
+/*
+* 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.supply;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class StaticBinder implements Binder
+{
+   private static Binder instance;
+
+   private StaticBinder()
+   {
+      System.out.println("Creating StaticBinder");
+   }
+
+   public static Binder getInstance()
+   {
+      if (instance == null)
+         instance = new StaticBinder();
+      return instance;
+   }
+
+   public Object getBindedObject()
+   {
+      return "[BindedObject]";
+   }
+}

Added: projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/microcontainer/trunk/docs/examples/User_Guide/pojoDevelopment/supply/src/main/resources/META-INF/jboss-beans.xml	2007-11-09 09:49:09 UTC (rev 66902)
@@ -0,0 +1,16 @@
+<?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="lookup" class="org.jboss.example.microcontainer.supply.PojoLookup">
+      <demand>pojo</demand>
+   </bean>
+
+   <bean name="binder">
+      <constructor factoryMethod="getInstance" factoryClass="org.jboss.example.microcontainer.supply.StaticBinder"/>
+      <supply>pojo</supply>
+   </bean>
+
+</deployment>




More information about the jboss-cvs-commits mailing list