2.1. InitializingBean and DisposableBean
The org.springframework.beans.factory.InitializingBean interface allows a bean to perform initialization work after all necessary properties on the bean have been set by the container.
Himai Minh wrote:Hi, Salih,
Since your Bilgisayar is a singleton, you only have one bean constructed. So, b1 and b2 refer to the same bean.
The @POSTConstruct method is called after the Bilgisayar bean has been created.
But we cannot control the order of the printing.
You may want to define a common ancestor class, with @PreDestroy and @PostConstruct annotated methods, and let your managed beans extend it.
Liutauras Vilda wrote:salih ayan, I find your last question difficult to understand.
You maybe could put readers into context how the preparation about OCA 8 and in particular the need of an advice about the book is related with prior certifications as Java 6... Professional... Anyway, where v7 gone?
Paul Nijssen wrote:Hi,
I used the Sybex Study Guide written by Jeanne Boyarsky and Scott Selikof and using this book i passed the exam in one try. The book covers all the necessary topics and is written very clear. Next to the book you also get a lot of online questions to practice.