Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #5238
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Stanimir Stamenkov <s7an10@netscape.net> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Create Dynamic Proxy for class instead of interface |
| Date | Sun, 12 Jun 2011 17:15:17 +0300 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <it2hld$h99$1@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 12 Jun 2011 14:15:09 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="VdcnnljfizG2LUdZ5iOA6g"; logging-data="17705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Zw0mUHPvqNoyoeK4WV/Sf" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20110608 SeaMonkey/2.1 |
| X-Face | )>>ChyF_H<b)u~Zjgo/=wa~;=qyW%.F\L.d^fKL[;y\=tY\]M}2t(a^;PKS}9g|k@\vkA<P Q|4?kcJ52334f:CaCrQZ=]D~txPPh6[y{xHkZ+4/KPKZ~|*K#?EqeP0W]iU*Ldy-hyjh0)N4c.I<m) K}GsUUe0)~24Xp`Jt |
| Cancel-Lock | sha1:1zQgRSoEuvXkcjTZzEgIrct3lQQ= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5238 |
Show key headers only | View raw
The Dynamic Proxy API [1] allows one to create proxy classes implementing number of specified interfaces. I've wondered if it is possible and how to create such a proxy class for a specified class and not interface. I've found Javassit should provide such means, but haven't really tried it yet: http://en.wikipedia.org/wiki/Javassist I basically want to create a proxy augmenting an existing object with additional interface. Is the Javassist library the right tool for doing this? Are there other similar tools? [1] http://download.oracle.com/javase/6/docs/technotes/guides/reflection/proxy.html -- Stanimir
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
Create Dynamic Proxy for class instead of interface Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-12 17:15 +0300
Re: Create Dynamic Proxy for class instead of interface Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-12 17:40 +0300
Re: Create Dynamic Proxy for class instead of interface Robert Klemme <shortcutter@googlemail.com> - 2011-06-12 19:07 +0200
Re: Create Dynamic Proxy for class instead of interface Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-12 20:42 +0300
Re: Create Dynamic Proxy for class instead of interface Tom Anderson <twic@urchin.earth.li> - 2011-06-13 11:58 +0100
csiph-web