Examples of AspectManagerUtil


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

      @Override
      public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
      {
         AbstractBeanMetaData arrayReplacement = (AbstractBeanMetaData)o;
         BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(arrayReplacement);
         AspectManagerUtil util = new AspectManagerUtil();
         String name = null;
         for (int i = 0; i < attrs.getLength(); ++i)
         {
            String localName = attrs.getLocalName(i);
            if ("name".equals(localName))
            {
               name = attrs.getValue(i);
            }
            if ("class".equals(localName))
            {
               builder.addPropertyMetaData("classes", attrs.getValue(i));
            }
            else if ("expr".equals(localName))
            {
               builder.addPropertyMetaData("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(builder, "manager");
        
         if (name == null)
         {
            name = GUID.asString();
         }
View Full Code Here

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

      }

      @Override
      public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
      {
         AspectManagerUtil util = new AspectManagerUtil();
         AbstractBeanMetaData dynamicCFlow = (AbstractBeanMetaData)o;
         BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(dynamicCFlow);
         for (int i = 0; i < attrs.getLength(); ++i)
         {
            String localName = attrs.getLocalName(i);
            if ("name".equals(localName))
            {
               dynamicCFlow.setName(attrs.getValue(i));
               builder.addPropertyMetaData("name", attrs.getValue(i));
            }
            else if ("class".equals(localName))
            {
               builder.addPropertyMetaData("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(builder, "manager");
      }
View Full Code Here

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

      }

      @Override
      public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
      {
         AspectManagerUtil util = new AspectManagerUtil();
         AbstractBeanMetaData pointcut = (AbstractBeanMetaData)o;
         BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(pointcut);
         String name = null;
         for (int i = 0; i < attrs.getLength(); ++i)
         {
            String localName = attrs.getLocalName(i);
            if ("name".equals(localName))
            {
               name = attrs.getValue(i);
            }
            else if ("expr".equals(localName))
            {
               builder.addPropertyMetaData("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(builder, "manager");
        
         if (name == null)
         {
            name = GUID.asString();
         }
View Full Code Here

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

      }
     
      @Override
      public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
      {
         AspectManagerUtil util = new AspectManagerUtil();
         AbstractBeanMetaData annotation = (AbstractBeanMetaData)o;
         BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(annotation);
        
         for (int i = 0; i < attrs.getLength(); ++i)
         {
            String localName = attrs.getLocalName(i);
            if ("invisible".equals(localName))
            {
               builder.addPropertyMetaData("invisible", attrs.getValue(i));
            }
            else if ("expr".equals(localName))
            {
               builder.addPropertyMetaData("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(builder, "manager");
         annotation.setName(GUID.asString());
      }
View Full Code Here

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

      public void add(Object parent, Object child, QName name)
      {
         DomainBeanMetaDataFactory domain = (DomainBeanMetaDataFactory)parent;
         AbstractBeanMetaData bean = (AbstractBeanMetaData)child;
         //Overwrite the manager property
         AspectManagerUtil util = new AspectManagerUtil();
         util.setManagerBean(domain.getName());
         util.setManagerProperty("domain");
         util.setAspectManagerProperty(BeanMetaDataBuilder.createBuilder(bean), "manager");
        
         domain.addChildBean(bean);
      }     
View Full Code Here
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.