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 JonasEjbRelationshipRoleRuleSet extends JRuleSetBase { 39 40 44 public JonasEjbRelationshipRoleRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "jonas-ejb-relationship-role", 54 "org.objectweb.jonas_ejb.deployment.xml.JonasEjbRelationshipRole"); 55 digester.addSetNext(prefix + "jonas-ejb-relationship-role", 56 "addJonasEjbRelationshipRole", 57 "org.objectweb.jonas_ejb.deployment.xml.JonasEjbRelationshipRole"); 58 digester.addCallMethod(prefix + "jonas-ejb-relationship-role/ejb-relationship-role-name", 59 "setEjbRelationshipRoleName", 0); 60 digester.addRuleSet(new ForeignKeyJdbcMappingRuleSet(prefix + "jonas-ejb-relationship-role/")); 61 } 62 } 63 | Popular Tags |