Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Create utility class to fetch Spring beans #14

@ppodgorsek

Description

@ppodgorsek

A utility class should be created to fetch Spring beans in an easy manner.

Currently, Spring beans can be fetched using:

Registry.getApplicationContext().getBean("userService")

While simple, this leads to the duplication of a lot of code and can become problematic if the bean name needs to be changed.

Instead, the utility class approach will allow to define the bean name in a single place and to fetch it using for example:

ApplicationContextUtils.getUserService()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions