# How many instances did the container really construct? right after refresh(): singleton instances : 1 @Lazy singleton : 0 prototype : 0 after getBean() twice for singleton and lazy, three times for prototype: singleton instances : 1 same object both times: true @Lazy singleton : 1 same object both times: true prototype : 3 serials: 1, 2, 3 two separate contexts, each with SingletonBean: singleton instances : 2 same object across contexts: false