/**
  * @see
  *     org.seasar.framework.xml.sax.handler.TagHandler#end(org.seasar.framework.xml.sax.handler.TagHandlerContext,
  *     java.lang.String)
  */
 public void end(TagHandlerContext context, String body) {
   AspectDef aspectDef = (AspectDef) context.pop();
   if (!StringUtil.isEmpty(body)) {
     aspectDef.setExpression(body);
   }
   ComponentDef componentDef = (ComponentDef) context.peek();
   componentDef.addAspectDef(aspectDef);
 }
 /**
  * @see
  *     org.seasar.framework.xml.sax.handler.TagHandler#start(org.seasar.framework.xml.sax.handler.TagHandlerContext,
  *     org.xml.sax.Attributes)
  */
 public void start(TagHandlerContext context, Attributes attributes) {
   AspectDef aspectDef = null;
   String pointcutStr = attributes.getValue("pointcut");
   if (pointcutStr != null) {
     String[] methodNames = StringUtil.split(pointcutStr, ", ");
     aspectDef = createAspectDef(createPointcut(methodNames));
   } else {
     aspectDef = createAspectDef();
   }
   context.push(aspectDef);
 }
Beispiel #3
0
 public void end(TagHandlerContext context, String body) {
   RendererElement renderer = (RendererElement) context.pop();
   RenderKitElement config = (RenderKitElement) context.peek();
   config.addRendererElement(renderer);
 }
Beispiel #4
0
 public void start(TagHandlerContext context, Attributes attributes) {
   RendererElement renderer = createRendererElement();
   context.push(renderer);
 }