1 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 32 37 38 public class IconRuleSet extends JRuleSetBase { 39 40 46 47 51 public IconRuleSet(String prefix) { 52 super(prefix); 53 } 54 58 59 public void addRuleInstances(Digester digester) { 60 digester.addObjectCreate(prefix + "icon", 61 "org.objectweb.jonas_lib.deployment.xml.Icon"); 62 digester.addSetNext(prefix + "icon", 63 "setIcon", 64 "org.objectweb.jonas_lib.deployment.xml.Icon"); 65 digester.addCallMethod(prefix + "icon/small-icon", 66 "setSmallIcon", 0); 67 digester.addCallMethod(prefix + "icon/large-icon", 68 "setLargeIcon", 0); 69 } 70 } 71 | Popular Tags |