Package org.jboss.beans.metadata.plugins

Examples of org.jboss.beans.metadata.plugins.AbstractLazyMetaData


   /** The handler */
   public static final LazyHandler HANDLER = new LazyHandler();

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      return new AbstractLazyMetaData();
   }
View Full Code Here


      return new AbstractLazyMetaData();
   }

   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
   {
      AbstractLazyMetaData lazy = (AbstractLazyMetaData) o;
      for (int i = 0; i < attrs.getLength(); ++i)
      {
         String localName = attrs.getLocalName(i);
         if ("name".equals(localName))
            lazy.setName(attrs.getValue(i));
         else if ("bean".equals(localName))
            lazy.setBeanName(attrs.getValue(i));
         else if ("exposeClass".equals(localName))
            lazy.setExposeClass(Boolean.parseBoolean(attrs.getValue(i)));
      }
   }
View Full Code Here

      }
   }

   public Object endElement(Object o, QName qName, ElementBinding element)
   {
      AbstractLazyMetaData lazy = (AbstractLazyMetaData) o;
      if (lazy.getBeanName() == null)
         throw new IllegalArgumentException("Bean name must be set!");
      return lazy;
   }
View Full Code Here

   /** The interceptor */
   public static final LazyInterfaceInterceptor INTERCEPTOR = new LazyInterfaceInterceptor();

   public void add(Object parent, Object child, QName name)
   {
      AbstractLazyMetaData lazy = (AbstractLazyMetaData) parent;
      ClassMetaData intface = (ClassMetaData) child;
      Set<String> interfaces = lazy.getInterfaces();
      if (interfaces == null)
      {
         interfaces = new HashSet<String>();
         lazy.setInterfaces(interfaces);
      }
      interfaces.add(intface.getClassName());
   }
View Full Code Here

/*    */ {
/* 40 */   public static final LazyHandler HANDLER = new LazyHandler();
/*    */
/*    */   public Object startElement(Object parent, QName name, ElementBinding element)
/*    */   {
/* 44 */     return new AbstractLazyMetaData();
/*    */   }
View Full Code Here

/* 44 */     return new AbstractLazyMetaData();
/*    */   }
/*    */
/*    */   public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/*    */   {
/* 49 */     AbstractLazyMetaData lazy = (AbstractLazyMetaData)o;
/* 50 */     for (int i = 0; i < attrs.getLength(); i++)
/*    */     {
/* 52 */       String localName = attrs.getLocalName(i);
/* 53 */       if ("name".equals(localName))
/* 54 */         lazy.setName(attrs.getValue(i));
/* 55 */       else if ("bean".equals(localName))
/* 56 */         lazy.setBeanName(attrs.getValue(i));
/* 57 */       else if ("exposeClass".equals(localName))
/* 58 */         lazy.setExposeClass(Boolean.parseBoolean(attrs.getValue(i)));
/*    */     }
/*    */   }
View Full Code Here

/*    */     }
/*    */   }
/*    */
/*    */   public Object endElement(Object o, QName qName, ElementBinding element)
/*    */   {
/* 64 */     AbstractLazyMetaData lazy = (AbstractLazyMetaData)o;
/* 65 */     if (lazy.getBeanName() == null)
/* 66 */       throw new IllegalArgumentException("Bean name must be set!");
/* 67 */     return lazy;
/*    */   }
View Full Code Here

/*    */ {
/* 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());
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.plugins.AbstractLazyMetaData

Copyright © 2018 www.massapicom. 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.