Tag: bean scope

  • Mixing Bean Scopes – Proxy and @Lookup

    Mixing Bean Scopes – Proxy and @Lookup

    Is possible that in your design you will encounter situations where beans have the Singleton Scope but dependencies on beans with the Prototype scope. Spring has several ways to handle this problem: Proxy and @Lookup

  • Bean Scopes – Singleton and Prototype

    Bean Scopes – Singleton and Prototype

    Spring has six types of scopes: singleton, prototype, request, session, application, and websocket. Singleton and Prototype are the two scopes that can be used in any application meanwhile the other four scopes are only available for a web application. For this entry we only focus on the Singleton and Prototype.