1 27 package org.objectweb.jonas_ejb.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 37 38 public class EjbRelationshipRoleRuleSet extends JRuleSetBase { 39 40 44 public EjbRelationshipRoleRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "ejb-relationship-role", 54 "org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole"); 55 digester.addSetNext(prefix + "ejb-relationship-role", 56 "addEjbRelationshipRole", 57 "org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole"); 58 digester.addCallMethod(prefix + "ejb-relationship-role/description", 59 "setDescription", 0); 60 digester.addCallMethod(prefix + "ejb-relationship-role/ejb-relationship-role-name", 61 "setEjbRelationshipRoleName", 0); 62 digester.addCallMethod(prefix + "ejb-relationship-role/multiplicity", 63 "setMultiplicity", 0); 64 digester.addCallMethod(prefix + "ejb-relationship-role/cascade-delete", 65 "setCascadeDelete"); 66 digester.addRuleSet(new RelationshipRoleSourceRuleSet(prefix + "ejb-relationship-role/")); 67 digester.addRuleSet(new CmrFieldRuleSet(prefix + "ejb-relationship-role/")); 68 } 69 } 70 | Popular Tags |