|
|
|
@ -99,11 +99,16 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt |
|
|
|
|
|
|
|
|
|
|
|
private List<?> pets; |
|
|
|
private List<?> pets; |
|
|
|
|
|
|
|
|
|
|
|
public TestBean() { } |
|
|
|
public TestBean() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public TestBean(String name) { this.name = name; } |
|
|
|
public TestBean(String name) { |
|
|
|
|
|
|
|
this.name = name; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public TestBean(ITestBean spouse) { this.spouse = spouse; } |
|
|
|
public TestBean(ITestBean spouse) { |
|
|
|
|
|
|
|
this.spouse = spouse; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public TestBean(String name, int age) { |
|
|
|
public TestBean(String name, int age) { |
|
|
|
this.name = name; |
|
|
|
this.name = name; |
|
|
|
@ -115,39 +120,73 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt |
|
|
|
this.someProperties = someProperties; |
|
|
|
this.someProperties = someProperties; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setBeanName(String beanName) { this.beanName = beanName; } |
|
|
|
public void setBeanName(String beanName) { |
|
|
|
|
|
|
|
this.beanName = beanName; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getBeanName() { return beanName; } |
|
|
|
public String getBeanName() { |
|
|
|
|
|
|
|
return beanName; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setBeanFactory(BeanFactory beanFactory) { this.beanFactory = beanFactory; } |
|
|
|
public void setBeanFactory(BeanFactory beanFactory) { |
|
|
|
|
|
|
|
this.beanFactory = beanFactory; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public BeanFactory getBeanFactory() { return beanFactory; } |
|
|
|
public BeanFactory getBeanFactory() { |
|
|
|
|
|
|
|
return beanFactory; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setPostProcessed(boolean postProcessed) { this.postProcessed = postProcessed; } |
|
|
|
public void setPostProcessed(boolean postProcessed) { |
|
|
|
|
|
|
|
this.postProcessed = postProcessed; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isPostProcessed() { return postProcessed; } |
|
|
|
public boolean isPostProcessed() { |
|
|
|
|
|
|
|
return postProcessed; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getName() { return name; } |
|
|
|
public String getName() { |
|
|
|
|
|
|
|
return name; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setName(String name) { this.name = name; } |
|
|
|
public void setName(String name) { |
|
|
|
|
|
|
|
this.name = name; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getSex() { return sex; } |
|
|
|
public String getSex() { |
|
|
|
|
|
|
|
return sex; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSex(String sex) { this.sex = sex; } |
|
|
|
public void setSex(String sex) { |
|
|
|
|
|
|
|
this.sex = sex; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getAge() { return age; } |
|
|
|
public int getAge() { |
|
|
|
|
|
|
|
return age; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setAge(int age) { this.age = age; } |
|
|
|
public void setAge(int age) { |
|
|
|
|
|
|
|
this.age = age; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isJedi() { return jedi; } |
|
|
|
public boolean isJedi() { |
|
|
|
|
|
|
|
return jedi; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setJedi(boolean jedi) { this.jedi = jedi; } |
|
|
|
public void setJedi(boolean jedi) { |
|
|
|
|
|
|
|
this.jedi = jedi; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ITestBean getSpouse() { return spouse; } |
|
|
|
public ITestBean getSpouse() { |
|
|
|
|
|
|
|
return spouse; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSpouse(ITestBean spouse) { this.spouse = spouse; } |
|
|
|
public void setSpouse(ITestBean spouse) { |
|
|
|
|
|
|
|
this.spouse = spouse; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getTouchy() { return touchy; } |
|
|
|
public String getTouchy() { |
|
|
|
|
|
|
|
return touchy; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setTouchy(String touchy) throws Exception { |
|
|
|
public void setTouchy(String touchy) throws Exception { |
|
|
|
if (touchy.indexOf('.') != -1) { |
|
|
|
if (touchy.indexOf('.') != -1) { |
|
|
|
@ -161,77 +200,149 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt |
|
|
|
this.touchy = touchy; |
|
|
|
this.touchy = touchy; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getCountry() { return country; } |
|
|
|
public String getCountry() { |
|
|
|
|
|
|
|
return country; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setCountry(String country) { this.country = country; } |
|
|
|
public void setCountry(String country) { |
|
|
|
|
|
|
|
this.country = country; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String[] getStringArray() { return stringArray; } |
|
|
|
public String[] getStringArray() { |
|
|
|
|
|
|
|
return stringArray; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setStringArray(String[] stringArray) { this.stringArray = stringArray; } |
|
|
|
public void setStringArray(String[] stringArray) { |
|
|
|
|
|
|
|
this.stringArray = stringArray; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Integer[] getSomeIntegerArray() { return someIntegerArray; } |
|
|
|
public Integer[] getSomeIntegerArray() { |
|
|
|
|
|
|
|
return someIntegerArray; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeIntegerArray(Integer[] someIntegerArray) { this.someIntegerArray = someIntegerArray; } |
|
|
|
public void setSomeIntegerArray(Integer[] someIntegerArray) { |
|
|
|
|
|
|
|
this.someIntegerArray = someIntegerArray; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Date getDate() { return date; } |
|
|
|
public Date getDate() { |
|
|
|
|
|
|
|
return date; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setDate(Date date) { this.date = date; } |
|
|
|
public void setDate(Date date) { |
|
|
|
|
|
|
|
this.date = date; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Float getMyFloat() { return myFloat; } |
|
|
|
public Float getMyFloat() { |
|
|
|
|
|
|
|
return myFloat; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setMyFloat(Float myFloat) { this.myFloat = myFloat; } |
|
|
|
public void setMyFloat(Float myFloat) { |
|
|
|
|
|
|
|
this.myFloat = myFloat; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Collection<?> getFriends() { return friends; } |
|
|
|
public Collection<?> getFriends() { |
|
|
|
|
|
|
|
return friends; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setFriends(Collection<?> friends) { this.friends = friends; } |
|
|
|
public void setFriends(Collection<?> friends) { |
|
|
|
|
|
|
|
this.friends = friends; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Set<?> getSomeSet() { return someSet; } |
|
|
|
public Set<?> getSomeSet() { |
|
|
|
|
|
|
|
return someSet; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeSet(Set<?> someSet) { this.someSet = someSet; } |
|
|
|
public void setSomeSet(Set<?> someSet) { |
|
|
|
|
|
|
|
this.someSet = someSet; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Map<?, ?> getSomeMap() { return someMap; } |
|
|
|
public Map<?, ?> getSomeMap() { |
|
|
|
|
|
|
|
return someMap; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeMap(Map<?, ?> someMap) { this.someMap = someMap; } |
|
|
|
public void setSomeMap(Map<?, ?> someMap) { |
|
|
|
|
|
|
|
this.someMap = someMap; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<?> getSomeList() { return someList; } |
|
|
|
public List<?> getSomeList() { |
|
|
|
|
|
|
|
return someList; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeList(List<?> someList) { this.someList = someList; } |
|
|
|
public void setSomeList(List<?> someList) { |
|
|
|
|
|
|
|
this.someList = someList; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Properties getSomeProperties() { return someProperties; } |
|
|
|
public Properties getSomeProperties() { |
|
|
|
|
|
|
|
return someProperties; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeProperties(Properties someProperties) { this.someProperties = someProperties; } |
|
|
|
public void setSomeProperties(Properties someProperties) { |
|
|
|
|
|
|
|
this.someProperties = someProperties; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public INestedTestBean getDoctor() { return doctor; } |
|
|
|
public INestedTestBean getDoctor() { |
|
|
|
|
|
|
|
return doctor; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public INestedTestBean getLawyer() { return lawyer; } |
|
|
|
public INestedTestBean getLawyer() { |
|
|
|
|
|
|
|
return lawyer; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setDoctor(INestedTestBean bean) { doctor = bean; } |
|
|
|
public void setDoctor(INestedTestBean bean) { |
|
|
|
|
|
|
|
doctor = bean; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setLawyer(INestedTestBean bean) { lawyer = bean; } |
|
|
|
public void setLawyer(INestedTestBean bean) { |
|
|
|
|
|
|
|
lawyer = bean; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Number getSomeNumber() { return someNumber; } |
|
|
|
public Number getSomeNumber() { |
|
|
|
|
|
|
|
return someNumber; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeNumber(Number someNumber) { this.someNumber = someNumber; } |
|
|
|
public void setSomeNumber(Number someNumber) { |
|
|
|
|
|
|
|
this.someNumber = someNumber; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Colour getFavouriteColour() { return favouriteColour; } |
|
|
|
public Colour getFavouriteColour() { |
|
|
|
|
|
|
|
return favouriteColour; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setFavouriteColour(Colour favouriteColour) { this.favouriteColour = favouriteColour; } |
|
|
|
public void setFavouriteColour(Colour favouriteColour) { |
|
|
|
|
|
|
|
this.favouriteColour = favouriteColour; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Boolean getSomeBoolean() { return someBoolean; } |
|
|
|
public Boolean getSomeBoolean() { |
|
|
|
|
|
|
|
return someBoolean; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSomeBoolean(Boolean someBoolean) { this.someBoolean = someBoolean; } |
|
|
|
public void setSomeBoolean(Boolean someBoolean) { |
|
|
|
|
|
|
|
this.someBoolean = someBoolean; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IndexedTestBean getNestedIndexedBean() { return nestedIndexedBean; } |
|
|
|
public IndexedTestBean getNestedIndexedBean() { |
|
|
|
|
|
|
|
return nestedIndexedBean; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setNestedIndexedBean(IndexedTestBean nestedIndexedBean) { this.nestedIndexedBean = nestedIndexedBean; } |
|
|
|
public void setNestedIndexedBean(IndexedTestBean nestedIndexedBean) { |
|
|
|
|
|
|
|
this.nestedIndexedBean = nestedIndexedBean; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<?> getOtherColours() { return otherColours; } |
|
|
|
public List<?> getOtherColours() { |
|
|
|
|
|
|
|
return otherColours; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setOtherColours(List<?> otherColours) { this.otherColours = otherColours; } |
|
|
|
public void setOtherColours(List<?> otherColours) { |
|
|
|
|
|
|
|
this.otherColours = otherColours; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<?> getPets() { return pets; } |
|
|
|
public List<?> getPets() { |
|
|
|
|
|
|
|
return pets; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setPets(List<?> pets) { this.pets = pets; } |
|
|
|
public void setPets(List<?> pets) { |
|
|
|
|
|
|
|
this.pets = pets; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @see ITestBean#exceptional(Throwable) |
|
|
|
* @see ITestBean#exceptional(Throwable) |
|
|
|
@ -242,23 +353,34 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void unreliableFileOperation() throws IOException { throw new IOException(); } |
|
|
|
public void unreliableFileOperation() throws IOException { |
|
|
|
|
|
|
|
throw new IOException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @see ITestBean#returnsThis() |
|
|
|
* @see ITestBean#returnsThis() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Object returnsThis() { return this; } |
|
|
|
public Object returnsThis() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @see IOther#absquatulate() |
|
|
|
* @see IOther#absquatulate() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void absquatulate() { } |
|
|
|
public void absquatulate() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int haveBirthday() { return age++; } |
|
|
|
public int haveBirthday() { |
|
|
|
|
|
|
|
return age++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void destroy() { this.destroyed = true; } |
|
|
|
public void destroy() { |
|
|
|
|
|
|
|
this.destroyed = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean wasDestroyed() { return destroyed; } |
|
|
|
public boolean wasDestroyed() { |
|
|
|
|
|
|
|
return destroyed; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean equals(Object other) { |
|
|
|
public boolean equals(Object other) { |
|
|
|
@ -275,7 +397,9 @@ public class TestBean implements BeanNameAware, BeanFactoryAware, ITestBean, IOt |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int hashCode() { return this.age; } |
|
|
|
public int hashCode() { |
|
|
|
|
|
|
|
return this.age; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int compareTo(Object other) { |
|
|
|
public int compareTo(Object other) { |
|
|
|
if ((this.name != null) && (other instanceof TestBean)) { |
|
|
|
if ((this.name != null) && (other instanceof TestBean)) { |
|
|
|
|