CreatorSunReflectiveCreator@Deprecated public class ReflectiveCreator extends Object implements Creator
| Constructor | Description |
|---|---|
ReflectiveCreator() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
<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.
|
protected <T> Constructor<T> getNewConstructor(Class<T> clazz)
null if no suitable constructor is available.clazz - the class to get a constructor fornull if none is availablepublic <T> T create(Class<T> clazz) throws InvalidClassException
create in interface Creatorclazz - the type of object to createInvalidClassException - if an instance of the class could not be instantiated for some reasonCopyright © 2020 JBoss by Red Hat. All rights reserved.