1 22 package org.jboss.metadata; 23 24 import org.w3c.dom.Element ; 25 26 import org.jboss.deployment.DeploymentException; 27 import org.jboss.cache.invalidation.InvalidationManager; 28 29 43 44 public class CacheInvalidationConfigMetaData extends MetaData 45 { 46 47 49 51 protected String invalidationGroupName = null; 52 protected String invalidationManagerName = null; 53 54 56 58 public CacheInvalidationConfigMetaData () { super (); } 59 60 62 public String getInvalidationGroupName () 63 { 64 return this.invalidationGroupName; 65 } 66 67 public String getInvalidationManagerName () 68 { 69 return this.invalidationManagerName; 70 } 71 72 public void setInvalidationGroupName(String invalidationGroupName) 73 { 74 this.invalidationGroupName = invalidationGroupName; 75 } 76 77 public void setInvalidationManagerName(String managerName) 78 { 79 this.invalidationManagerName = managerName; 80 } 81 82 public void init(BeanMetaData data) 83 { 84 this.invalidationGroupName = data.getEjbName (); 87 88 this.invalidationManagerName = InvalidationManager.DEFAULT_JMX_SERVICE_NAME; 89 } 90 91 public void importJbossXml(Element element) throws DeploymentException 92 { 93 this.invalidationGroupName = getElementContent(getOptionalChild(element, "invalidation-group-name"), this.invalidationGroupName); 94 this.invalidationManagerName = getElementContent(getOptionalChild(element, "invalidation-manager-name"), this.invalidationManagerName); 95 } 96 97 99 101 103 105 107 109 } 110 | Popular Tags |