Re: [aspectwerkz-user] ASPECT that makes a class implement an interface??

Aaron Rustad <[email protected]> Thu, 9 Feb 2006 18:29:29 -0700
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
haha...you are right! My project has me working with both CGLIB and
AspectWerkz...I guess I am getting the libraries mixed up.

Thanks!
AR.

On 2/9/06, Jonas Bonér <[email protected]> wrote:
> are you talking about cglib's enhancer?
> if that is the case they are not applying the interfaces to the
> *target* class, but to a on the fly generated subclass of the target
> class, e.g. using a Proxy mechanism which is not the same thing (needs
> to be instantiated through a factory etc. and not what you are after I
> guess)
>
>
> On 2/9/06, Aaron Rustad <[email protected]> wrote:
> > 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
> > >
> >
>
>
> --
> Jonas Bonér
> Terracotta, Inc.
>
> http://jonasboner.com
> http://www.terracottatech.com
>