Examples of BindIntroductionRule


Examples of org.codehaus.aspectwerkz.xmldef.definition.BindIntroductionRule

     * @param aspectDef the aspect definition
     */
    private static void handleBindIntroductionRules(final Element aspectElement,
                                                    final AspectDefinition aspectDef) {
        for (Iterator it = aspectDef.getBindIntroductionRules().iterator(); it.hasNext();) {
            BindIntroductionRule bindIntroductionRule = (BindIntroductionRule)it.next();

            Element element = aspectElement.addElement("bind-introduction");
            element.addAttribute("class", bindIntroductionRule.getExpression().getExpression());

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

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

Examples of org.codehaus.aspectwerkz.xmldef.definition.BindIntroductionRule

        );

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

        BindIntroductionRule bindIntroductionRule = new BindIntroductionRule();
        bindIntroductionRule.setExpression(Expression.createRootExpression(
                aspectDef.getName(), className, PointcutType.CLASS
        ));

        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;
                }
                bindIntroductionRule.addIntroductionRef(introductionRef);
            }
            aspectDef.addBindIntroductionRule(bindIntroductionRule);
        }
    }
View Full Code Here

Examples of org.codehaus.aspectwerkz.xmldef.definition.BindIntroductionRule

     * @param aspectDef the aspect definition
     */
    private static void handleBindIntroductionRules(final Element aspectElement,
                                                    final AspectDefinition aspectDef) {
        for (Iterator it = aspectDef.getBindIntroductionRules().iterator(); it.hasNext();) {
            BindIntroductionRule bindIntroductionRule = (BindIntroductionRule)it.next();

            Element element = aspectElement.addElement("bind-introduction");
            element.addAttribute("class", bindIntroductionRule.getExpression().getExpression());

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

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

Examples of org.codehaus.aspectwerkz.xmldef.definition.BindIntroductionRule

        );

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

        BindIntroductionRule bindIntroductionRule = new BindIntroductionRule();
        bindIntroductionRule.setExpression(ExpressionNamespace.getExpressionNamespace(aspectDef.getName())
                .createExpression(className, PointcutType.CLASS));

        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;
                }
                bindIntroductionRule.addIntroductionRef(introductionRef);
            }
            aspectDef.addBindIntroductionRule(bindIntroductionRule);
        }
    }
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.