1 22 package org.jboss.beans.metadata.plugins; 23 24 import java.util.Iterator ; 25 26 import org.jboss.beans.metadata.spi.MetaDataVisitor; 27 import org.jboss.beans.metadata.spi.MetaDataVisitorNode; 28 import org.jboss.beans.metadata.spi.SupplyMetaData; 29 import org.jboss.util.JBossObject; 30 import org.jboss.util.JBossStringBuilder; 31 32 38 public class AbstractSupplyMetaData extends JBossObject implements SupplyMetaData 39 { 40 41 protected Object supply; 42 43 46 public AbstractSupplyMetaData() 47 { 48 } 49 50 55 public AbstractSupplyMetaData(Object supply) 56 { 57 this.supply = supply; 58 } 59 60 65 public void setSupply(Object supply) 66 { 67 this.supply = supply; 68 flushJBossObjectCache(); 69 } 70 71 public Object getSupply() 72 { 73 return supply; 74 } 75 76 public void initialVisit(MetaDataVisitor visitor) 77 { 78 visitor.initialVisit(this); 79 } 80 81 public void describeVisit(MetaDataVisitor vistor) 82 { 83 vistor.describeVisit(this); 84 } 85 86 public Iterator <? extends MetaDataVisitorNode> getChildren() 87 { 88 return null; 89 } 90 91 public void toString(JBossStringBuilder buffer) 92 { 93 buffer.append("supply=").append(supply); 94 } 95 96 public void toShortString(JBossStringBuilder buffer) 97 { 98 buffer.append(supply); 99 } 100 } 101 | Popular Tags |