1 22 package org.jboss.repository.plugins; 23 24 import org.jboss.repository.spi.MetaDataCombiner; 25 import org.jboss.repository.spi.Key; 26 import org.jboss.repository.spi.MetaData; 27 28 31 public class InvocationMetaDataCombiner 32 implements MetaDataCombiner 33 { 34 private MetaDataCombiner next; 35 private Object context; 36 37 public InvocationMetaDataCombiner(MetaDataCombiner next, Object context) 38 { 39 this.next = next; 40 this.context = context; 41 } 42 43 protected Object getContext() 44 { 45 return context; 46 } 47 48 public MetaDataCombiner getNext() 49 { 50 return next; 51 } 52 public void setNext(MetaDataCombiner next) 53 { 54 this.next = next; 55 } 56 57 public Object combine(Key key, MetaData[] levelData) 58 { 59 Object value = null; if( value != null ) 61 return value; 62 value = next.combine(key, levelData); 63 return value; 64 } 65 66 } 67 | Popular Tags |