1 16 17 package org.springframework.beans.factory.xml; 18 19 import org.springframework.beans.TestBean; 20 21 24 public abstract class OverrideOneMethod extends MethodReplaceCandidate { 25 26 public abstract TestBean getPrototypeDependency(); 27 28 protected abstract TestBean protectedOverrideSingleton(); 29 30 public TestBean invokesOverridenMethodOnSelf() { 31 return getPrototypeDependency(); 32 } 33 34 public String echo(String echo) { 35 return echo; 36 } 37 38 41 public String replaceMe() { 42 return "replaceMe"; 43 } 44 45 49 public String replaceMe(int someParam) { 50 return "replaceMe:" + someParam; 51 } 52 53 } 54 | Popular Tags |