public class ProxyGroup
extends java.lang.Object
Even though we officially require JDK1.3 or higher, feedback shows that there are a lot of people out there who are stuck with JDK 1.2. But in JDK1.2, the Proxy class is not available.
This class is carefully crafted so that it tries to work with JDK1.2 as much as possible (with certain limitation.)
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
blindWrap(java.lang.Object o,
java.lang.Class mask,
java.lang.Class[] maskSatellite)
Wraps an unknown object into a given "mask" and return it.
|
static java.lang.Object |
unwrap(java.lang.Object o) |
static java.lang.Object |
wrap(java.lang.Object gi,
java.lang.Class giClass,
java.lang.Class[] neighbors)
Initialize the ProxyGroup for the JAXB generated runtime classes that
might require proxies.
|
public static java.lang.Object wrap(java.lang.Object gi,
java.lang.Class giClass,
java.lang.Class[] neighbors)
neighbors - ordered tuples of Class objects that might require
proxies.public static java.lang.Object blindWrap(java.lang.Object o,
java.lang.Class mask,
java.lang.Class[] maskSatellite)
o - An object to be wrapped.mask - The interface class of the proxy to be returned.maskSatellite - Other relevant interfaces on the mask side that may need
proxies.public static java.lang.Object unwrap(java.lang.Object o)