Package org.codehaus.aspectwerkz.definition

Examples of org.codehaus.aspectwerkz.definition.ControllerDefinition


     * @param aspectDef the aspect definition
     */
    private static void handleControllerDefinitions(final Element aspectElement,
                                                    final AspectDefinition aspectDef) {
        for (Iterator it = aspectDef.getControllerDefs().iterator(); it.hasNext();) {
            ControllerDefinition controllerDef = (ControllerDefinition)it.next();

            Element weavingRuleElement = aspectElement.addElement("controller-def");
            weavingRuleElement.addAttribute("pointcut", controllerDef.getExpression());
            weavingRuleElement.addAttribute("class", controllerDef.getClassName());
        }
    }
View Full Code Here


                    pointcutDef.setType(PointcutDefinition.METHOD);
                    definition.getAspectDefinition(AspectWerkzDefinition.SYSTEM_ASPECT).
                            addPointcutDef(pointcutDef);

                    // create a new controller definition
                    ControllerDefinition controllerDef = new ControllerDefinition();
                    controllerDef.setClassName(attribute);
                    controllerDef.setExpression(expression);

                    definition.getAspectDefinition(AspectWerkzDefinition.SYSTEM_ASPECT).
                            addControllerDef(controllerDef);

                    // add the pointcut pattern
                    controllerDef.addMethodPointcutPattern(pointcutDef);

                    counter++;
                    break;
                }
            }
View Full Code Here

     * @param aspectDef the aspect definition
     */
    private static void handleControllerDefinitions(final Element aspectElement,
                                                    final AspectDefinition aspectDef) {
        for (Iterator it = aspectDef.getControllerDefs().iterator(); it.hasNext();) {
            ControllerDefinition controllerDef = (ControllerDefinition)it.next();

            Element weavingRuleElement = aspectElement.addElement("controller-def");
            weavingRuleElement.addAttribute("pointcut", controllerDef.getExpression());
            weavingRuleElement.addAttribute("class", controllerDef.getClassName());
        }
    }
View Full Code Here

                    pointcutDef.setType(PointcutDefinition.METHOD);
                    definition.getAspectDefinition(AspectWerkzDefinition.SYSTEM_ASPECT).
                            addPointcutDef(pointcutDef);

                    // create a new controller definition
                    ControllerDefinition controllerDef = new ControllerDefinition();
                    controllerDef.setClassName(attribute);
                    controllerDef.setExpression(expression);

                    definition.getAspectDefinition(AspectWerkzDefinition.SYSTEM_ASPECT).
                            addControllerDef(controllerDef);

                    // add the pointcut pattern
                    controllerDef.addMethodPointcutPattern(pointcutDef);

                    counter++;
                    break;
                }
            }
View Full Code Here

TOP

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

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.