From 5236df0a6b42c6370c453b306fac578d24393b34 Mon Sep 17 00:00:00 2001 From: Philzen Date: Thu, 23 May 2024 17:46:16 +0200 Subject: [PATCH] Fix typo in overridable configure() method --- src/main/asciidoc/docs/dependency_injection.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/docs/dependency_injection.adoc b/src/main/asciidoc/docs/dependency_injection.adoc index f71e82f..024e1cc 100644 --- a/src/main/asciidoc/docs/dependency_injection.adoc +++ b/src/main/asciidoc/docs/dependency_injection.adoc @@ -226,7 +226,7 @@ package com.example; public class ParentModule extends AbstractModule { @Override - protected void conigure() { + protected void configure() { bind(MyService.class).toProvider(MyServiceProvider.class); bind(MyContext.class).to(MyContextImpl.class).in(Singleton.class); } @@ -284,4 +284,4 @@ As you see `ParentModule` declares binding for `MyService` and `MyContext` class * MyService - binding taken from ParentModule * MySession - binding taken from TestModule -This configuration ensures you that all tests in this suite will be run with same session instance, the `MyContextImpl` object is only created once per suite, this give you possibility to configure common environment state for all tests in suite. \ No newline at end of file +This configuration ensures you that all tests in this suite will be run with same session instance, the `MyContextImpl` object is only created once per suite, this give you possibility to configure common environment state for all tests in suite.