JBoss Marshalling 1.3.0.CR9

org.jboss.marshalling.reflect
Class PublicReflectiveCreator

java.lang.Object
  extended by org.jboss.marshalling.reflect.PublicReflectiveCreator
All Implemented Interfaces:
Creator

public class PublicReflectiveCreator
extends Object
implements Creator

A creator that simply uses reflection to locate and invoke a public, zero-argument constructor.


Constructor Summary
PublicReflectiveCreator()
           
 
Method Summary
<T> T
create(Class<T> clazz)
          Create an object instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicReflectiveCreator

public PublicReflectiveCreator()
Method Detail

create

public <T> T create(Class<T> clazz)
         throws InvalidClassException
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.3.0.CR9

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