Package org.jboss.kernel.plugins.deployment.xml

Source Code of org.jboss.kernel.plugins.deployment.xml.LazyInterfaceInterceptor

/*    */ package org.jboss.kernel.plugins.deployment.xml;
/*    */
/*    */ import java.util.HashSet;
/*    */ import java.util.Set;
/*    */ import javax.xml.namespace.QName;
/*    */ import org.jboss.beans.metadata.plugins.AbstractLazyMetaData;
/*    */ import org.jboss.beans.metadata.spi.ClassMetaData;
/*    */ import org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor;
/*    */
/*    */ public class LazyInterfaceInterceptor extends DefaultElementInterceptor
/*    */ {
/* 40 */   public static final LazyInterfaceInterceptor INTERCEPTOR = new LazyInterfaceInterceptor();
/*    */
/*    */   public void add(Object parent, Object child, QName name)
/*    */   {
/* 44 */     AbstractLazyMetaData lazy = (AbstractLazyMetaData)parent;
/* 45 */     ClassMetaData intface = (ClassMetaData)child;
/* 46 */     Set interfaces = lazy.getInterfaces();
/* 47 */     if (interfaces == null)
/*    */     {
/* 49 */       interfaces = new HashSet();
/* 50 */       lazy.setInterfaces(interfaces);
/*    */     }
/* 52 */     interfaces.add(intface.getClassName());
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.kernel.plugins.deployment.xml.LazyInterfaceInterceptor
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.kernel.plugins.deployment.xml.LazyInterfaceInterceptor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.