Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Contribution Overview

Proxy-o-Matic lets you create dynamic proxies fast and in an homogeneous way. Groovy has the option to create proxy implementations of interfaces, abstract classes and even concrete classes based on closures and maps. You can see them as a poor man's version of anonymous inner classes, but they are not an exact replacement as you can't qualify method calls with this nor super.

Proxies created with Proxy-o-Matic also suffer from the this/super problem but they add a couple of features that the standard proxy creation mechanism don't offer:

  • ability to define overloaded methods
  • ability to call its own methods from within
  • ability to proxy more than 1 interface at a time
  • ability to proxy from Expandos as well

Here are a couple of examples that show how to use Proxy-o-Matic

Credit must be given when credit is due, in this case Proxy-o-Matic emerged from an idea Alex Tkachman pitched at the Groovy-dev mailing list, thanks Alex for marvelous idea of a Proxy builder DSL.

Team Members

Andres Almiray [aalmiray at users dot sourceforge dot net]

Download

Distributions

Pending. 

Installing

Just drop proxyomatic-<version>.jar into $GROOVY_HOME/lib or ~/.groovy/lib and your done.

Pre-requisites

Have the latest stable version of Groovy installed, that's all baby!

Documentation

Pending

Contributing

Please contact the team members by e-mail.

Community

Mailing List(s)

http://groovy.codehaus.org/Mailing+Lists

Issue tracker

http://jira.codehaus.org/secure/BrowseProject.jspa?id=10242

  • No labels