public class ProxyGroup extends 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 Object |
blindWrap(Object o,
Class mask,
Class[] maskSatellite)
Wraps an unknown object into a given "mask" and return it.
|
static Object |
unwrap(Object o) |
static Object |
wrap(Object gi,
Class giClass,
Class[] neighbors)
Initialize the ProxyGroup for the JAXB generated runtime classes that
might require proxies.
|
public static Object wrap(Object gi, Class giClass, Class[] neighbors)
neighbors
- ordered tuples of Class objects that might require
proxies.public static Object blindWrap(Object o, Class mask, 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.Copyright © 2021 Oracle Corporation. All rights reserved.