You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2017/03/24 10:06:09 UTC
[05/17] isis git commit: Update
_ugfun_how-tos_class-structure_inject-services.adoc
Update _ugfun_how-tos_class-structure_inject-services.adoc
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/90450f67
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/90450f67
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/90450f67
Branch: refs/heads/master
Commit: 90450f67cffd75023f53cccd6ec999f653fe76ff
Parents: 6c74c9b
Author: ppirus <pp...@users.noreply.github.com>
Authored: Wed Mar 22 15:44:55 2017 +0100
Committer: GitHub <no...@github.com>
Committed: Wed Mar 22 15:44:55 2017 +0100
----------------------------------------------------------------------
.../guides/_ugfun_how-tos_class-structure_inject-services.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/90450f67/adocs/documentation/src/main/asciidoc/guides/_ugfun_how-tos_class-structure_inject-services.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_ugfun_how-tos_class-structure_inject-services.adoc b/adocs/documentation/src/main/asciidoc/guides/_ugfun_how-tos_class-structure_inject-services.adoc
index 61463c2..332c406 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_ugfun_how-tos_class-structure_inject-services.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_ugfun_how-tos_class-structure_inject-services.adoc
@@ -13,7 +13,7 @@ This is common for example for SPI service, whereby one module defines an SPI se
To support this, the framework also allows lists of services to be injected.
When there are multiple service implementations of a given type, the framework will inject the service with highest priority, as defined through xref:rgant.adoc#_rgant_DomainService_menuOrder[`@DomainService#menuOrder()`] (even for domain services that are not menus), lowest first.
-If a list of services are injected, then that list will be ordered according to `menuOrder`, again lowest first.
+If a list of services is injected, then that list will be ordered according to `menuOrder`, again lowest first.
@@ -58,7 +58,7 @@ We recommend using default rather than `private` visibility so that the field ca
== Method Injection
The framework also supports two forms of method injection.
-All that is required to inject a service into a entity/service is to provide an appropriate method or field.
+All that is required to inject a service into a entity/service is to provide an appropriate method and field.
The name of the method does not matter, only that it is prefixed either `set` or `inject`, is public, and has a single parameter of the correct type.
For example: