Prevents Method Call
1 posts in topic
Flat View  Flat View

Posted By:   henrique_s
Posted On:   Wednesday, December 6, 2006 02:42 PM

How do I prevent a method call in a JVM, It's possible? Can I restrict a specific object to prevents call? Thanks

Please use html tags to format code blocks.

Re: Prevents Method Call

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, December 10, 2006 05:52 PM

You can do it with Acegi Security + Spring.

Basically you provide an interface for your class, and make it a managed Spring bean, as a member field of the calling class. Then Acegi generates a proxy that implements the same interface, and passes the call through to your implementation class, IF the security constraints are satisfied.
About | Sitemap | Contact