public class VMObjectFactory
extends java.lang.Object
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.)
Constructor and Description |
---|
VMObjectFactory() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
newObject(java.lang.Class clazz,
Address addr) |
public static java.lang.Object newObject(java.lang.Class clazz, Address addr) throws ConstructionException
ConstructionException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.