I have a bean which extends other Java file. When I create a Spring bean all public methods (from my and from extended files) are exposed. How can I hide not needed methods in bean XML config, so they are not exposed?
Added explanation:
I expose my beans via RDS for Flex application. So, my beans are available over network. With unneeded methods I have two problems:
- Security - anybody can call my setDataSource inherited from JdbcDaoSupport or anything else.. I think it is just crazy :-)
- Since I use RDS for Flex Builder, which automatically creates remote objects for my Flex app. All methods like setDataSource are available in my Flex app. Which is not good. Of course I can cut them off, but point one still in place.