[jboss-cvs] JBossAS SVN: r79091 - in projects/demos/microcontainer/trunk/ioc/src/main: java/org/jboss/demos/ioc/alias and 4 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Oct 3 10:22:55 EDT 2008


Author: alesj
Date: 2008-10-03 10:22:55 -0400 (Fri, 03 Oct 2008)
New Revision: 79091

Added:
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/alias/
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/alias/AliasJavaBean.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/AnnotatedExecutor.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/SimpleExecutor.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchInterceptor.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchLog.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomBean.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomClassLoader.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/EnhancedBeanFactory.java
   projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/Prototype.java
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/aliases-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/annotations-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/bean-factory-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/classloader-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/demand-supply-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/install-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/lifecycle-beans.xml
   projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/value-factory-beans.xml
Log:
More IoC examples.

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/alias/AliasJavaBean.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/alias/AliasJavaBean.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/alias/AliasJavaBean.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,50 @@
+/*
+* 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.demos.ioc.alias;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class AliasJavaBean
+{
+   private int hash;
+
+   public AliasJavaBean()
+   {
+      this(42); // the answer to all ;-)
+   }
+
+   public AliasJavaBean(int hash)
+   {
+      this.hash = hash;
+   }
+
+   public int hashCode()
+   {
+      return hash;
+   }
+
+   public boolean equals(Object obj)
+   {
+      return obj instanceof AliasJavaBean && hash == obj.hashCode();
+   }
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/AnnotatedExecutor.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/AnnotatedExecutor.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/AnnotatedExecutor.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -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.demos.ioc.annotations;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class AnnotatedExecutor
+{
+   private SimpleExecutor delegate;
+
+   public AnnotatedExecutor(SimpleExecutor delegate)
+   {
+      this.delegate = delegate;
+   }
+
+   @StopWatchLog
+   public void execute() throws Exception
+   {
+      delegate.execute();
+   }
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/SimpleExecutor.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/SimpleExecutor.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/SimpleExecutor.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,36 @@
+/*
+* 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.demos.ioc.annotations;
+
+import java.util.Random;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class SimpleExecutor
+{
+   public void execute() throws Exception
+   {
+      Random random = new Random();
+      Thread.sleep(random.nextLong() % 1000l);
+   }
+}
\ No newline at end of file

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchInterceptor.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchInterceptor.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchInterceptor.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -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.demos.ioc.annotations;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class StopWatchInterceptor // todo interceptor
+{
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchLog.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchLog.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/annotations/StopWatchLog.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,36 @@
+/*
+* 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.demos.ioc.annotations;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target({ElementType.METHOD, ElementType.TYPE})
+public @interface StopWatchLog
+{
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomBean.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomBean.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomBean.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -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.demos.ioc.classloader;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class CustomBean
+{
+   public void invoke(String className) throws Exception
+   {
+      ClassLoader cl = getClass().getClassLoader();
+      cl.loadClass(className);
+   }
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomClassLoader.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomClassLoader.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/classloader/CustomClassLoader.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,39 @@
+/*
+* 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.demos.ioc.classloader;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class CustomClassLoader extends ClassLoader
+{
+   public CustomClassLoader(ClassLoader parent)
+   {
+      super(parent);
+   }
+
+   public Class<?> loadClass(String name) throws ClassNotFoundException
+   {
+      // todo - filter usage
+      return super.loadClass(name);
+   }
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/EnhancedBeanFactory.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/EnhancedBeanFactory.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/EnhancedBeanFactory.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,43 @@
+/*
+* 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.demos.ioc.factory;
+
+import org.jboss.beans.metadata.plugins.factory.GenericBeanFactory;
+import org.jboss.kernel.spi.config.KernelConfigurator;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class EnhancedBeanFactory extends GenericBeanFactory
+{
+   public EnhancedBeanFactory(KernelConfigurator configurator)
+   {
+      super(configurator);
+   }
+
+   public Object createBean() throws Throwable
+   {
+      Object bean = super.createBean();
+      // enhance bean - using javassist
+      return bean;
+   }
+}
\ No newline at end of file

Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/Prototype.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/Prototype.java	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/factory/Prototype.java	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,49 @@
+/*
+* 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.demos.ioc.factory;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class Prototype
+{
+   private Object value;
+
+   public Prototype()
+   {
+   }
+
+   public Prototype(Object value)
+   {
+      this.value = value;
+   }
+
+   public Object invoke()
+   {
+      return value;
+   }
+
+   public void setValue(Object value)
+   {
+      this.value = value;
+   }
+}

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/aliases-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/aliases-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/aliases-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,10 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <bean name="SimpleName" class="java.lang.Object">
+    <alias>SimpleAlias</alias>
+    <alias replace="true">${some.system.property}</alias>
+    <alias class="java.lang.Integer">12345</alias>
+    <alias><javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.demos.ioc.alias.AliasJavaBean"/></alias>
+  </bean>
+
+</deployment>

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/annotations-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/annotations-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/annotations-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,21 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!--<aop/> TODO add interceptor -->
+
+  <bean name="AnnotatedExecutor" class="org.jboss.demos.ioc.annotations.AnnotatedExecutor">
+    <constructor>
+      <parameter><bean class="org.jboss.demos.ioc.annotations.SimpleExecutor"/></parameter>
+    </constructor>
+  </bean>
+
+  <bean name="SimpleExecutorOnType" class="org.jboss.demos.ioc.annotations.SimpleExecutor">
+    <annotation>@org.jboss.demos.ioc.annotations.StopWatchLog</annotation>
+  </bean>
+
+  <bean name="SimpleExecutorOnMethod" class="org.jboss.demos.ioc.annotations.SimpleExecutor">
+    <install method="execute">
+       <annotation>@org.jboss.demos.ioc.annotations.StopWatchLog</annotation>
+    </install>
+  </bean>
+
+</deployment>

Copied: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/bean-factory-beans.xml (from rev 78584, projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/lazy-beans.xml)
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/bean-factory-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/bean-factory-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,13 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <bean name="Object" class="java.lang.Object"/>
+
+  <beanfactory name="DefaultPrototype" class="org.jboss.demos.ioc.factory.Prototype">
+    <property name="value"><inject bean="Object"/></property>
+  </beanfactory>
+
+  <beanfactory name="EnhancedPrototype" class="org.jboss.demos.ioc.factory.Prototype" factoryClass="org.jboss.demos.ioc.factory.EnhancedBeanFactory">
+    <property name="value"><inject bean="Object"/></property>
+  </beanfactory>
+
+</deployment>

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/classloader-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/classloader-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/classloader-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,19 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <classloader><inject bean="custom-classloader:0.0.0"/></classloader>
+
+  <classloader name="custom-classloader" xmlns="urn:jboss:classloader:1.0" export-all="NON_EMPTY" import-all="true"/>
+
+  <bean name="CustomCL" class="org.jboss.demos.ioc.classloader.CustomClassLoader">
+    <constructor>
+      <parameter><inject bean="custom-classloader:0.0.0"/></parameter>
+    </constructor>
+  </bean>
+
+  <bean name="CB1" class="org.jboss.demos.ioc.classloader.CustomBean"/>
+
+  <bean name="CB2" class="org.jboss.demos.ioc.classloader.CustomBean">
+    <classloader><inject bean="CustomCL"/></classloader>
+  </bean>
+
+</deployment>

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/demand-supply-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/demand-supply-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/demand-supply-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,5 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- TODO -->
+
+</deployment>

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/install-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/install-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/install-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,5 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- TODO -->
+
+</deployment>

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/lifecycle-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/lifecycle-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/lifecycle-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,5 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- TODO -->
+
+</deployment>

Added: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/value-factory-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/value-factory-beans.xml	                        (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/value-factory-beans.xml	2008-10-03 14:22:55 UTC (rev 79091)
@@ -0,0 +1,5 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- TODO -->
+
+</deployment>




More information about the jboss-cvs-commits mailing list