Package org.jboss.marshalling.reflect
Class ReflectiveCreator
- java.lang.Object
-
- org.jboss.marshalling.reflect.ReflectiveCreator
-
- All Implemented Interfaces:
Creator
- Direct Known Subclasses:
SunReflectiveCreator
@Deprecated public class ReflectiveCreator extends Object implements Creator
Deprecated.This class is no longer used and will be removed in a future version.A creator that simply uses reflection to locate and invoke a zero-argument constructor.
-
-
Constructor Summary
Constructors Constructor Description ReflectiveCreator()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> Tcreate(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.
-
-
-
Method Detail
-
getNewConstructor
protected <T> Constructor<T> getNewConstructor(Class<T> clazz)
Deprecated.Get the constructor to use for a class. Returnsnullif no suitable constructor is available.- Parameters:
clazz- the class to get a constructor for- Returns:
- the constructor, or
nullif none is available
-
create
public <T> T create(Class<T> clazz) throws InvalidClassException
Deprecated.Create an object instance.- Specified by:
createin interfaceCreator- 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
-
-