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 import org.objectweb.jonas_lib.deployment.rules.JonasEnvironmentRuleSet; 32 33 38 39 public class JonasEntityRuleSet extends JRuleSetBase { 40 41 45 public JonasEntityRuleSet(String prefix) { 46 super(prefix); 47 } 48 52 53 public void addRuleInstances(Digester digester) { 54 digester.addObjectCreate(prefix + "jonas-entity", 55 "org.objectweb.jonas_ejb.deployment.xml.JonasEntity"); 56 digester.addSetNext(prefix + "jonas-entity", 57 "addJonasEntity", 58 "org.objectweb.jonas_ejb.deployment.xml.JonasEntity"); 59 digester.addCallMethod(prefix + "jonas-entity/ejb-name", 60 "setEjbName", 0); 61 digester.addCallMethod(prefix + "jonas-entity/jndi-name", 62 "setJndiName", 0); 63 digester.addCallMethod(prefix + "jonas-entity/jndi-local-name", 64 "setJndiLocalName", 0); 65 digester.addRuleSet(new JonasEnvironmentRuleSet(prefix + "jonas-entity/")); 66 67 digester.addCallMethod(prefix + "jonas-entity/is-modified-method-name", 68 "setIsModifiedMethodName", 0); 69 digester.addCallMethod(prefix + "jonas-entity/passivation-timeout", 70 "setPassivationTimeout", 0); 71 digester.addCallMethod(prefix + "jonas-entity/inactivity-timeout", 72 "setInactivityTimeout", 0); 73 digester.addCallMethod(prefix + "jonas-entity/shared", 74 "setShared", 0); 75 digester.addCallMethod(prefix + "jonas-entity/prefetch", 76 "setPrefetch", 0); 77 digester.addCallMethod(prefix + "jonas-entity/max-cache-size", 78 "setMaxCacheSize", 0); 79 digester.addCallMethod(prefix + "jonas-entity/min-pool-size", 80 "setMinPoolSize", 0); 81 digester.addCallMethod(prefix + "jonas-entity/cleanup", 82 "setCleanup", 0); 83 digester.addCallMethod(prefix + "jonas-entity/lock-policy", 84 "setLockPolicy", 0); 85 digester.addRuleSet(new JdbcMappingRuleSet(prefix + "jonas-entity/")); 86 digester.addRuleSet(new IorSecurityConfigRuleSet(prefix + "jonas-entity/")); 87 } 88 } 89 | Popular Tags |