Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] "Best" access modifier for the renderer @PostContruct, @PreDestroy and @Inject methods

Hi,

in the renderer implementations I currently see a wild mix of access modifier, e.g. private, default, protected and public for methods annotated with @Inject, @PreDestroy and @PostConstruct.

I think the "correct" access modifier would be default or protected, so that people can override the method if desired. I think public should be avoided as we should make it clear that we do not except custom code to call these methods.

Is this a correct assessment? If yes, should we prefer default or protected?

Best regards, Lars

Back to the top