Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

what does our bean initialize (InitializingBean)

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi .
l want to ask about InitializingBean .
if you read below text it says that  "a bean to perform initialization work after all necessary properties on the bean have been set "

By saying a bean to perform initialization work what they want to express to us.
Can anyone tell me what our bean initialize .


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.

 
Bartender
Posts: 2124
13
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Salih,
Initializing bean has a method called afterPropertiesSet(). This method can be applied to initializing data source for database connection, for example.
 
salih ayan
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Himai.
That is perfect answer. l got the point
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic