public interface InstanceProvider
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(java.lang.Class<?> type)
Create an instance given a type, if possible.
|
java.lang.Object create(@Nullable java.lang.Class<?> type)
type
- - type to create.NotConstructableException
- Thrown to indicate that this type cannot or should never be constructed.