Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLZT-71 add @PostConstruct functionality #89

Merged
merged 8 commits into from
Nov 29, 2023
Merged

BLZT-71 add @PostConstruct functionality #89

merged 8 commits into from
Nov 29, 2023

Conversation

andrewpikozh
Copy link
Contributor

@andrewpikozh andrewpikozh commented Nov 29, 2023

  • add annotation @PostConstruct
  • add implementation
  • add tests
  • add documentation

};

// then
assertThrows(PostConstructException.class, executable);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be good to check the message of exception too.

2. **Invoke the Bring Container**: Make sure that you obtain the bean from the Bring container. The `@PostConstruct` annotated method will be automatically invoked.

```java
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove spring import

…bring into BLZT-71

# Conflicts:
#	core/src/main/java/com/bobocode/bring/core/utils/ReflectionUtils.java
@andrewpikozh andrewpikozh merged commit 72c261c into main Nov 29, 2023
@andrewpikozh andrewpikozh deleted the BLZT-71 branch November 29, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants