JBoss Marshalling 1.4.3.Final

org.jboss.marshalling.reflect
Class ReflectiveCreator

java.lang.Object
  extended by org.jboss.marshalling.reflect.ReflectiveCreator
All Implemented Interfaces:
Creator
Direct Known Subclasses:
SunReflectiveCreator

Deprecated. This class is no longer used and will be removed in a future version.

@Deprecated
public class ReflectiveCreator
extends Object
implements Creator


Constructor Summary
ReflectiveCreator()
          Deprecated.  
 
Method Summary
<T> T
create(Class<T> clazz)
          Deprecated. Create an object instance.
protected
<T> Constructor<T>
getNewConstructor(Class<T> clazz)
          Deprecated. Get the constructor to use for a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveCreator

public ReflectiveCreator()
Deprecated. 
Method Detail

getNewConstructor

protected <T> Constructor<T> getNewConstructor(Class<T> clazz)
Deprecated. 
Get the constructor to use for a class. Returns null if no suitable constructor is available.

Parameters:
clazz - the class to get a constructor for
Returns:
the constructor, or null if none is available

create

public <T> T create(Class<T> clazz)
         throws InvalidClassException
Deprecated. 
Create an object instance.

Specified by:
create in interface Creator
Parameters:
clazz - the type of object to create
Returns:
the object instance
Throws:
InvalidClassException - if an instance of the class could not be instantiated for some reason

JBoss Marshalling 1.4.3.Final

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