diff --git a/README.md b/README.md index 39d58050..47d754e5 100644 --- a/README.md +++ b/README.md @@ -164,12 +164,15 @@ interface MainScope { @motif.Objects class Objects { + DatabaseImpl databaseImpl() { + return new DatabaseImpl(); + } + // Motif requires explicit dependency declarations to properly resolve and inject dependencies across scopes @Expose - Database database() { - return new Database(); + Database database(DatabaseImpl impl) { + return impl; } - // ... } }