Marshalling API version 1.0.0.GA

org.jboss.marshalling.reflect
Class SunReflectiveCreator

java.lang.Object
  extended by org.jboss.marshalling.reflect.ReflectiveCreator
      extended by 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.


Constructor Summary
SunReflectiveCreator()
           
 
Method Summary
protected
<T> Constructor<T>
getNewConstructor(Class<T> clazz)
          Get the constructor to use for a class.
 
Methods inherited from class org.jboss.marshalling.reflect.ReflectiveCreator
create, getCachedConstructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunReflectiveCreator

public SunReflectiveCreator()
Method Detail

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

Marshalling API version 1.0.0.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.