Demonstrates how to write and use lifecycle beans.