This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

The Open Source Zone


ProxyToys

Project logo
Project Name ProxyToys
Category Libraries
Programming Language Java
Project Home Page http://proxytoys.codehaus.org/
License(s) BSD License
License URL(s) http://proxytoys.codehaus.org/license.html
Tags (edit) cglib, proxy

Have you ever developed code that uses java.lang.reflect.Proxy and thought:

"That CGLIB library sure is cool. I wish I could leverage both standard proxies and CGLIB proxies without changing my code".

With ProxyToys you can! ProxyToys is to proxy generation what Jakarta Commons Logging is to logging - an thin implementation neutral API for Proxy creation. Whether to use standard proxies or CGLIB is a one-line code change.

Features

API Compatible proxy factory providers:

  • Standard proxies of the JDK
  • CGLIB implementation

ProxyToys provides a collection of toys acting as factories for creating " special" proxies such as:

  • Decorators - for simple AOP-like chained method interception
  • Delegates - for method invocation on a delegate object, that might have different type
  • Dispatcher proxy - single proxy instance dispatching method calls to different object with separate types
  • Echo proxy - for tracing method calls
  • Failover objects - fails over to a next object in case of exception
  • Hot swapping proxy - allows implementation hiding that can be swapped, and mutual dependencies
  • Multicasting objects - for multicasting a method invocation to multiple objects
  • Null objects - for default implementations of classes that do nothing at all
  • Pool - for a pool implemntation with proxied objects that return automatically to the pool

Edit project.

Report abuse.

Add similar projects.

Reviews

Be the first person to review this project!

User tips

Add a tip.

Related books

Add more books.


Last modified on 2006-02-27 23:00:40.636 (rel. 2).