Package org.jboss.aop.microcontainer.beans.beanmetadatafactory

Examples of org.jboss.aop.microcontainer.beans.beanmetadatafactory.BeanMetaDataUtil


      }

      @Override
      public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
      {
         BeanMetaDataUtil util = new BeanMetaDataUtil();
         AbstractBeanMetaData typedef = (AbstractBeanMetaData)o;

         for (int i = 0; i < attrs.getLength(); ++i)
         {
            String localName = attrs.getLocalName(i);
            if ("name".equals(localName))
            {
               typedef.setName(attrs.getValue(i));
               BeanMetaDataUtil.setSimpleProperty(typedef, "name", attrs.getValue(i));
            }
            else if ("expr".equals(localName))
            {
               BeanMetaDataUtil.setSimpleProperty(typedef, "expr", attrs.getValue(i));
            }
            else if (MANAGER_BEAN_NAME.equals(localName))
            {
               util.setManagerBean(attrs.getValue(i));
            }
            else if (MANAGER_PROPERTY_NAME.equals(localName))
            {
               util.setManagerProperty(attrs.getValue(i));
            }
         }
         util.setAspectManagerProperty(typedef, "manager");
      }
View Full Code Here


      }

      @Override
      public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
      {
         BeanMetaDataUtil util = new BeanMetaDataUtil();
         AbstractBeanMetaData dynamicCFlow = (AbstractBeanMetaData)o;

         for (int i = 0; i < attrs.getLength(); ++i)
         {
            String localName = attrs.getLocalName(i);
            if ("name".equals(localName))
            {
               dynamicCFlow.setName(attrs.getValue(i));
               BeanMetaDataUtil.setSimpleProperty(dynamicCFlow, "name", attrs.getValue(i));
            }
            else if ("class".equals(localName))
            {
               BeanMetaDataUtil.setSimpleProperty(dynamicCFlow, "className", attrs.getValue(i));
            }
            else if (MANAGER_BEAN_NAME.equals(localName))
            {
               util.setManagerBean(attrs.getValue(i));
            }
            else if (MANAGER_PROPERTY_NAME.equals(localName))
            {
               util.setManagerProperty(attrs.getValue(i));
            }
         }
         util.setAspectManagerProperty(dynamicCFlow, "manager");
      }
View Full Code Here

TOP

Related Classes of org.jboss.aop.microcontainer.beans.beanmetadatafactory.BeanMetaDataUtil

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.