@Test public void testToString() throws Exception { InitAndDestroyMethodViaXmlBean initAndDestroyMethodViaXmlBean = getBean( "initAndDestroyMethodViaXmlBeanSingleton", InitAndDestroyMethodViaXmlBean.class); System.out.println(initAndDestroyMethodViaXmlBean); System.out.println("========================================================================================="); InitAndDestroyMethodViaXmlBean bean = getBean( "initAndDestroyMethodViaXmlBeanPrototype", InitAndDestroyMethodViaXmlBean.class); System.out.println(bean); }
@Override public String toString() { return "InitAndDestroyMethodViaXmlBean{" + "string='" + string + '\'' + ", plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + '}'; }
InitAndDestroyMethodViaXmlBean { @Override public String toString() { return "InitAndDestroyMethodViaXmlBean{" + "string='" + string + '\'' + ", plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + '}'; } }
InitAndDestroyMethodViaXmlBean { @Override public String toString() { return "InitAndDestroyMethodViaXmlBean{" + "string='" + string + '\'' + ", plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + '}'; } @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(); @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(PlainModelOne plainModelOne); }
InitAndDestroyMethodViaXmlBean { @Override public String toString() { return "InitAndDestroyMethodViaXmlBean{" + "string='" + string + '\'' + ", plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + '}'; } @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(); @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(PlainModelOne plainModelOne); void init(); void destroy(); void setString(String string); @Override String toString(); void setPlainModelTwo(PlainModelTwo plainModelTwo); }
InitAndDestroyMethodViaXmlBean { @Override public String toString() { return "InitAndDestroyMethodViaXmlBean{" + "string='" + string + '\'' + ", plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + '}'; } @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(); @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(PlainModelOne plainModelOne); void init(); void destroy(); void setString(String string); @Override String toString(); void setPlainModelTwo(PlainModelTwo plainModelTwo);  }