Re: [aspectwerkz-user] ASPECT that makes a class implement an interface??
Aaron Rustad <[email protected]> Thu, 9 Feb 2006 15:56:00 -0700
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
Interesting, then what purpose is Enhancer.setInterfaces()?
ie.
Enhancer enhancer = new Enhancer();
enhancer.setInterfaces(new Class[]{Maskable.class});
AR.
On 2/9/06, Jonas Bonér <[email protected]> wrote:
> no it is not possible to do that at runtime
> this is breaking the schema of the class, which is something that
> current JVMTI and hotswap specs (that we rely on) is not supporting.
> Sorry.
>
> On 2/9/06, Andrea Sindico <[email protected]> wrote:
> > hi all,
> > i would d like to deploy an aspect, at runtime, that makes a class implement
> > an interface (like Serializable)
> > is it possible?
> >
> > Please answer me! :-)
> >
> > thanks in advance
> >
> > Andrea
> >
>
>
> --
> Jonas Bonér
> Terracotta, Inc.
>
> http://jonasboner.com
> http://www.terracottatech.com
>