org.jboss.marshalling.reflect
Class SunReflectiveCreator
java.lang.Object
org.jboss.marshalling.reflect.ReflectiveCreator
org.jboss.marshalling.reflect.SunReflectiveCreator
- All Implemented Interfaces:
- Creator
public class SunReflectiveCreator
- extends ReflectiveCreator
An object creator that uses methods only found in certain JVMs to create a new constructor if needed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunReflectiveCreator
public SunReflectiveCreator()
getNewConstructor
protected <T> Constructor<T> getNewConstructor(Class<T> clazz)
- Get the constructor to use for a class. Returns
null
if no suitable constructor is available. This implementation will attempt to create a new constructor if one is not available.
- Overrides:
getNewConstructor
in class ReflectiveCreator
- Parameters:
clazz
- the class to get a constructor for
- Returns:
- the constructor, or
null
if none is available
Copyright © 2008 JBoss, a division of Red Hat, Inc.