This is an automated email from the ASF dual-hosted git repository.
justin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 5d2ed89 update Sling Models documentation to clarify @PostConstruct
methods with the same name
5d2ed89 is described below
commit 5d2ed8969b091a301b8c0be167ebff00ccb9eb2b
Author: Justin Edelson <[email protected]>
AuthorDate: Tue Nov 7 09:44:47 2017 -0500
update Sling Models documentation to clarify @PostConstruct methods with
the same name
---
src/main/jbake/content/documentation/bundles/models.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/jbake/content/documentation/bundles/models.md
b/src/main/jbake/content/documentation/bundles/models.md
index 35dace2..e4496ac 100644
--- a/src/main/jbake/content/documentation/bundles/models.md
+++ b/src/main/jbake/content/documentation/bundles/models.md
@@ -254,7 +254,7 @@ The `@PostConstruct` annotation can be used to add methods
which are invoked upo
}
}
-`@PostConstruct` methods in a super class will be invoked first.
+`@PostConstruct` methods in a super class will be invoked first. If a
`@PostConstruct` method exists in a subclass with the same name as in the
parent class, only the subclass method will be invoked. This is the case
regardless of the scope of either method.
Since Sling Models Implementation 1.4.6, `@PostConstruct` methods may return a
`false` boolean value in which case the model creation will fail without
logging any exception
(a message will be logged at the `DEBUG` level).
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].