public class ReflectionFactoryInstantiator extends Object implements Instantiator
Constructor and Description |
---|
ReflectionFactoryInstantiator() |
Modifier and Type | Method and Description |
---|---|
<T> T |
instantiate(Class<T> clazz)
Create a new instance of a class
|
boolean |
isAvailable()
Used for checking if this particular instantiation method is available in the environment
|
public boolean isAvailable()
Instantiator
isAvailable
in interface Instantiator
public <T> T instantiate(Class<T> clazz)
Instantiator
instantiate
in interface Instantiator
T
- The type of the classclazz
- The classCopyright © 2016. All rights reserved.