• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proxy instance of a class that does not implement any interface.

 
samir ware
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers
Can anyone please explain me whether it is possible to create proxy for a class that don't implement any interface. I have seen the examples for java.lang.reflect.Proxy and I could see that it is possible to create a proxy for a class which implment certain set of interfaces by using API



in Proxy class. Though this API expects interface as its second parameter. Is it possible to create proxy object without any interface ?

Thanks in advance
Samir
 
Rob Spoor
Sheriff
Pie
Posts: 20493
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A short Google search for "java proxy abstract class" gave me a few good results. The first one looks very promising: http://stackoverflow.com/questions/3291637/alternatives-to-java-lang-reflect-proxy-for-creating-proxies-of-abstract-classes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic