This class implements a factory mechanism for the objects created to wrap Addresses. It requires that the class passed in implement a constructor taking with the following signature:
public <Type>(sun.jvm.hotspot.Address)
It is used to write shorter code when wrapping Addresses since null checks are no longer necessary. In addition, it is a central location where a canonicalizing map could be implemented if one were desired (though the current system is designed to not require one.)
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> T |
| VMObjectFactory | back to summary |
|---|---|
| public VMObjectFactory() | |
| newObject | back to summary |
|---|---|
| public static <T> T newObject(Class<T> clazz, Address addr) throws ConstructionException | |