Java dynamic proxy questions.

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-04-14T10:05:15Z Indexed on 2010/04/14 10:13 UTC
Read the original article Hit count: 306

Filed under:

1.Does dynamic proxy instance subclass the target class? The java doc says the proxy instance implements "a list of interfaces", says nothing about subclassing, but through debugging, I saw that the proxy instance did inherit the target class properites.What does the "a list of interfaces " mean? Can I exclude those interfaces implemented by target class ?

2.Can I invoke target class specific methods on a proxy instance?

3. I think dynamic proxy is an interface methods invocation proxy but rather than a target class proxy, is that right (I am deeply infected by hibernate proxy object concept)?

© Stack Overflow or respective owner

Related posts about java