Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Private setters with pojo support

Is it possible to use GigaSpaces pojo support with private setters?

The idea is that I have a class where 3 properties are mutable, and I want to have a subclass where only 2 of them is mutable. Can I model this efficiently with an abstract class containing only getters, and two concrete classes containing my setters , with different access privileges?

asked 2014-03-11 04:02:07 -0500

edmondo1984's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

You can do that ,but with private setters reflection will be used,so you pay a bit in performance,(and java policy..,by default grant all) and should also override getter in sub class to add annotations there.

answered 2014-03-20 06:04:40 -0500

Ester's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-03-11 04:02:07 -0500

Seen: 106 times

Last updated: Mar 20 '14