public interface FactoryProvider
Modifier and Type | Method and Description |
---|---|
<T> EventFactory<T> |
create(Class<T> type,
Class<?> parentType,
List<? extends EventFactoryPlugin> plugins)
Creates a function that takes a map of property names with their
values to create a new instance of a generated class that implements
the given type.
|
NullPolicy |
getNullPolicy()
Get whether there should be any checks on whether a parameter is
null when it should not be.
|
void |
setNullPolicy(NullPolicy policy)
Set whether there should be any checks on whether a parameter is
null when it should not be.
|
NullPolicy getNullPolicy()
void setNullPolicy(NullPolicy policy)
policy
- The null policy<T> EventFactory<T> create(Class<T> type, Class<?> parentType, List<? extends EventFactoryPlugin> plugins)
T
- The type of the eventtype
- The type to generate a class forparentType
- The parent typeplugins
- The EventFactoryPlugin
s to use when generating the class