1 package org.oddjob.arooa; 2 3 import org.oddjob.arooa.reflect.IntrospectionHelper; 4 import org.xml.sax.SAXParseException ; 5 6 7 9 10 public class BespokeComponentHandler extends ArooaHandler { 11 12 public void characters(char[] buf, int start, int count, ArooaContext context) 13 throws SAXParseException { 14 String s = new String (buf, start, count).trim(); 15 System.out.println(s); 16 } 17 18 public void onEndElement(String uri, String tag, ArooaContext context) { 19 Object parent = ((RuntimeConfiguration) context.get( 20 ArooaConstants.CURRENTLY_CONFIGURING)).getWrappedObject(); 21 IntrospectionHelper ih = IntrospectionHelper.getHelper(parent.getClass()); 22 ih.storeComponent(parent, "worked", tag); 23 24 } 25 } 26 27 | Popular Tags |