[jboss-cvs] JBossAS SVN: r58977 - projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 11 15:13:09 EST 2006


Author: alesj
Date: 2006-12-11 15:13:05 -0500 (Mon, 11 Dec 2006)
New Revision: 58977

Removed:
   projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringBeansInterceptor.java
Modified:
   projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringSchemaBindingHelper.java
Log:
JBMICROCONT-26; initial code commit, missing build and tests

Deleted: projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringBeansInterceptor.java
===================================================================
--- projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringBeansInterceptor.java	2006-12-11 19:19:48 UTC (rev 58976)
+++ projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringBeansInterceptor.java	2006-12-11 20:13:05 UTC (rev 58977)
@@ -1,56 +0,0 @@
-/*
-* 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.spring.deployment.xml;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.jboss.beans.metadata.plugins.AbstractBeanMetaData;
-import org.jboss.beans.metadata.spi.BeanMetaDataFactory;
-import org.jboss.kernel.plugins.deployment.AbstractKernelDeployment;
-import org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor;
-
-/**
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-public class SpringBeansInterceptor extends DefaultElementInterceptor
-{
-   /**
-    * The interceptor
-    */
-   public static final SpringBeansInterceptor INTERCEPTOR = new SpringBeansInterceptor();
-
-   public void add(Object parent, Object child, QName name)
-   {
-      AbstractKernelDeployment deployment = (AbstractKernelDeployment) parent;
-      AbstractBeanMetaData bean = (AbstractBeanMetaData) child;
-      List<BeanMetaDataFactory> beans = deployment.getBeanFactories();
-      if (beans == null)
-      {
-         beans = new ArrayList<BeanMetaDataFactory>();
-         deployment.setBeanFactories(beans);
-      }
-      beans.add(bean);
-   }
-
-}

Modified: projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringSchemaBindingHelper.java
===================================================================
--- projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringSchemaBindingHelper.java	2006-12-11 19:19:48 UTC (rev 58976)
+++ projects/microcontainer/trunk/spring-int/src/main/org/jboss/spring/deployment/xml/SpringSchemaBindingHelper.java	2006-12-11 20:13:05 UTC (rev 58977)
@@ -34,7 +34,7 @@
    {
       typeBinding.setHandler(SpringBeansHandler.HANDLER);
       // handle beans
-      typeBinding.pushInterceptor(SpringSchemaBinding.beansQName, SpringBeansInterceptor.INTERCEPTOR);
+      typeBinding.pushInterceptor(SpringSchemaBinding.beansQName, DeploymentBeanInterceptor.INTERCEPTOR);
       // todo alias
       // todo import
    }




More information about the jboss-cvs-commits mailing list