Results 1 to 2 of 2

Thread: Proxing dinamically

  1. #1
    Join Date
    Dec 2007
    Posts
    7

    Default Proxing dinamically

    Hi,
    i have a class called ApplicationService i use it with a method getList() that returns a List of Foo object.
    ApplicationService is proxied, but my returned object no...
    I can intercept the method getList(), is there a method to create the proxy manually like:
    ProxyClass proxy=new ProxyClass(Foo);
    and ProxyClass extends FOO...

    thanks

  2. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    What is getList() doing? Why do you want Foo instances to be proxied?

    And yes, it is possible. Have a look at ProxyFactoryBean and its super classes.

    Joerg
    This post can contain insufficient information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •