blob: 82499cd4089912aae99b3d41e677aaba7c8e609a [file] [log] [blame]
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ See the License for the specific language governing permissions and
~ limitations under the License.
<title>Proposal for Proxy Package</title>
<body bgcolor="white">
<div align="center">
<h1>Proposal for <em>Proxy</em> Package</h1>
<h3>(0) Rationale</h3>
Many projects require the use of proxies in order to support such features as method interception/decoration, lazy
loading, dependency injection, etc. There are many different techniques for creating proxy objects which delegate to
other objects (JDK proxies, CGLIB, and Javassist to name a few). Using these technologies can prove to be quite
daunting. This package seeks to abstract away the difficult code required to implement proxies effectively and
efficiently so that developers can concentrate on implementing the core implementations and method interceptors.
<h3>(1) Scope of the Package</h3>
The package shall create and maintain a suite of utility classes for creating dynamic proxy objects written in the
Java language to be distributed under the ASF license. The package will include many different "core object
provider" implementations supporting many existing remoting technologies (EJB, Hessian, Burlap, JAX-RPC, Apache
XML-RPC, RMI, etc.) as well as many other "in-vm" implementations (bean instantiation, cloning, constant, etc.).
The package will also provide "decorator object providers" which add functionality to the object providers they wrap
such as pooling, singleton, caching, etc. The package will also serve as a repository for many useful interceptor
implementations which support such features as logging, asynchronous invocation, etc. The package will provide
multiple "proxy factory" implementations, supporting different proxying technologies (JDK proxies, CGLIB, Javassist,
<h3>(1.5) Interaction With Other Packages</h3>
<em>Proxy</em> utilizes the JUnit unit testing framework for developing and executing unit tests, but this is of
interest only to developers of the component. The original will include support for the Hessian and Burlap remoting
protocols. The original codebase will also include support for CGLIB and Javassist-base proxies.
<p>No external configuration files are utilized.</p>
<h3>(2) Initial Source of the Package</h3>
The initial codebase will be contributed by James Carman based on code in the Syringe (
project and can be distributed under the Apache license.
<p>The proposed package name for the new component is
<h3>(3) Required Jakarta-Commons Resources</h3>
<li>SVN Repository - New directory <code>proxy</code> in the
<code>jakarta-commons</code> SVN repository. All initial committers
are already committers on <code>jakarta-commons</code>, so no
additional user setups are required.</li>
<li>Mailing List - Discussions will take place on the general
<em></em> mailing list. To help
list subscribers identify messages of interest, it is suggested that
the message subject of messages about this component be prefixed with
<li>Bugzilla - New component "Proxy" under the "Commons" product
category, with appropriate version identifiers as needed.</li>
<li>Jyve FAQ - New category "commons-proxy" (when available). </li>
<h3>(4) Initial Committers</h3>
<li>James Carman</li>