> For the complete documentation index, see [llms.txt](https://divine.qibergames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://divine.qibergames.com/advanced-usage/service-lifecycles/post-construction.md).

# Post construction

The `@AfterInitialized` method is called right after the service is instantiated, and each field is injected.

This feature is useful, when you have a bunch of dependencies of your service, and you don't want to use a constructor, because the initialization would be too robust.

```java
@Service
class CloudController {
    @Inject
    private CloudConnection connection;
    
    @AfterInitialized
    private void init() {
        connection.sendHandshake();
    }
}
```
