public interface FactoryContext
| Modifier and Type | Method and Description |
|---|---|
<TYPE> TYPE |
geInstance(Class<? extends TYPE> type,
Object... args)
Returns an instance of the object described by the specified parameters.
If a null instance is returned, the constructor matching the specified arguments will be called by default. |
@Nullable <TYPE> TYPE geInstance(@Nonnull Class<? extends TYPE> type, @Nonnull Object... args)
TYPE - the target object type.type - the type of the returned instance.args - the custom arguments.