Package org.codehaus.aspectwerkz.definition

Examples of org.codehaus.aspectwerkz.definition.IntroductionWeavingRule


     * @param aspectDef the aspect definition
     */
    private static void handleIntroductionWeavingRules(final Element aspectElement,
                                                       final AspectDefinition aspectDef) {
        for (Iterator it = aspectDef.getIntroductionWeavingRules().iterator(); it.hasNext();) {
            IntroductionWeavingRule weavingRule = (IntroductionWeavingRule)it.next();

            Element weavingRuleElement = aspectElement.addElement("bind-introduction");
            weavingRuleElement.addAttribute("class", weavingRule.getClassPattern());

            for (Iterator it2 = weavingRule.getIntroductionRefs().iterator(); it2.hasNext();) {
                String introductionRef = (String)it2.next();

                Element introductionRefElement = weavingRuleElement.addElement("introduction-ref");
                introductionRefElement.addAttribute("name", introductionRef);
            }
View Full Code Here


                AspectWerkzDefinition.SYSTEM_ASPECT);

        JavaClass javaClass = qdoxParser.getJavaClass();
        DocletTag[] introductionTags = javaClass.getTagsByName(AttributeTag.INTRODUCTION);

        IntroductionWeavingRule weavingRule = new IntroductionWeavingRule();
        weavingRule.setClassPattern(className);

        for (int i = 0; i < introductionTags.length; i++) {
            if (introductionTags[i] == null) {
                continue;
            }
            String[] attributes = introductionTags[i].getParameters();
            for (int j = 0; j < attributes.length; j++) {
                final String introductionRef = definition.
                        getIntroductionNameByAttribute(attributes[j]);
                if (introductionRef == null) {
                    continue;
                }
                weavingRule.addIntroductionRef(introductionRef);
            }
            aspectDefinition.addIntroductionWeavingRule(weavingRule);
        }
    }
View Full Code Here

     * @param aspectDef the aspect definition
     */
    private static void handleIntroductionWeavingRules(final Element aspectElement,
                                                       final AspectDefinition aspectDef) {
        for (Iterator it = aspectDef.getIntroductionWeavingRules().iterator(); it.hasNext();) {
            IntroductionWeavingRule weavingRule = (IntroductionWeavingRule)it.next();

            Element weavingRuleElement = aspectElement.addElement("bind-introduction");
            weavingRuleElement.addAttribute("class", weavingRule.getClassPattern());

            for (Iterator it2 = weavingRule.getIntroductionRefs().iterator(); it2.hasNext();) {
                String introductionRef = (String)it2.next();

                Element introductionRefElement = weavingRuleElement.addElement("introduction-ref");
                introductionRefElement.addAttribute("name", introductionRef);
            }
View Full Code Here

                AspectWerkzDefinition.SYSTEM_ASPECT);

        JavaClass javaClass = qdoxParser.getJavaClass();
        DocletTag[] introductionTags = javaClass.getTagsByName(AttributeTag.INTRODUCTION);

        IntroductionWeavingRule weavingRule = new IntroductionWeavingRule();
        weavingRule.setClassPattern(className);

        for (int i = 0; i < introductionTags.length; i++) {
            if (introductionTags[i] == null) {
                continue;
            }
            String[] attributes = introductionTags[i].getParameters();
            for (int j = 0; j < attributes.length; j++) {
                final String introductionRef = definition.
                        getIntroductionNameByAttribute(attributes[j]);
                if (introductionRef == null) {
                    continue;
                }
                weavingRule.addIntroductionRef(introductionRef);
            }
            aspectDefinition.addIntroductionWeavingRule(weavingRule);
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.definition.IntroductionWeavingRule

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.