You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/10/25 11:56:27 UTC
[jira] [Commented] (ISIS-1009) Call a @PostConstruct callback for
view models
[ https://issues.apache.org/jira/browse/ISIS-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14973174#comment-14973174 ]
ASF subversion and git services commented on ISIS-1009:
-------------------------------------------------------
Commit 8f98cf47fa66ffdf43105e66dfadb9c2d815ccbd in isis's branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=8f98cf4 ]
ISIS-1009: support @PostConstruct for view models.
Using a PostConstructMethodCache implemented by each facet factory, with ViewModelFacet#initialize(..) being responsible for invoking the @PostConstruct method if present.
Using template pattern in RecreatableObjectFacetAbstract to ensure any future implementations will obey same contract.
Also updated docs.
> Call a @PostConstruct callback for view models
> ----------------------------------------------
>
> Key: ISIS-1009
> URL: https://issues.apache.org/jira/browse/ISIS-1009
> Project: Isis
> Issue Type: Improvement
> Components: Core
> Affects Versions: core-1.7.0
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Minor
> Fix For: 1.10.0
>
>
> For view models that directly implement ViewModel interface, their viewModelInit(...) method is called and so they have a hook to do any additional initialization, eg looking up objects etc
> But for view models that are annotated using @ViewModel, these have no such hook.
> Suggest that we honour @PostConstruct annotation for all view models, as a consistent hook.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)