1 16 package org.apache.commons.attributes; 17 18 import java.lang.reflect.Field ; 19 import java.lang.reflect.Constructor ; 20 import java.lang.reflect.Method ; 21 import java.util.ArrayList ; 22 import java.util.Collection ; 23 24 27 class EmptyCachedRepository implements CachedRepository { 28 29 private final static Collection EMPTY_COLLECTION = new ArrayList (0); 30 31 public Collection getAttributes () { 32 return EMPTY_COLLECTION; 33 } 34 35 public Collection getAttributes (Field f) { 36 return EMPTY_COLLECTION; 37 } 38 39 public Collection getAttributes (Method m) { 40 return EMPTY_COLLECTION; 41 } 42 43 public Collection getParameterAttributes (Constructor c, int parameter) { 44 return EMPTY_COLLECTION; 45 } 46 47 public Collection getParameterAttributes (Method m, int parameter) { 48 return EMPTY_COLLECTION; 49 } 50 51 public Collection getReturnAttributes (Method m) { 52 return EMPTY_COLLECTION; 53 } 54 55 public Collection getAttributes (Constructor c) { 56 return EMPTY_COLLECTION; 57 } 58 } 59 | Popular Tags |