public static interface ObjectFactory.ObjectFactoryInstance
Modifier and Type | Method and Description |
---|---|
<T> T |
create(Class<T> parentType) |
ObjectFactory.ObjectFactoryInstance |
ignoreUnknownProperties()
If called the unsupported properties will be ignored otherwise
create(Class)
will fail with an exception. |
ObjectFactory.ObjectFactoryInstance |
withFieldInjection()
Set that the properties can be injected into fields directly, default uses fields
but not private ones.
|
ObjectFactory.ObjectFactoryInstance |
withoutFieldInjection()
Set that the properties can NOT be injected into fields directly.
|
ObjectFactory.ObjectFactoryInstance |
withProperties(Map<String,?> properties) |
default <T> ObjectFactory.ObjectFactoryInstance |
withProperties(Stream<T> stream,
Function<T,String> keyExtractor,
Function<T,?> valueExtractor)
Shortcut for
withProperties(Map) . |
ObjectFactory.ObjectFactoryInstance withFieldInjection()
ObjectFactory.ObjectFactoryInstance withoutFieldInjection()
ObjectFactory.ObjectFactoryInstance ignoreUnknownProperties()
create(Class)
will fail with an exception.ObjectFactory.ObjectFactoryInstance withProperties(Map<String,?> properties)
properties
- the properties to use to configure the instance.default <T> ObjectFactory.ObjectFactoryInstance withProperties(Stream<T> stream, Function<T,String> keyExtractor, Function<T,?> valueExtractor)
withProperties(Map)
.
Note that if there are conflicting keys the last one is used.T
- the type of the created object.stream
- a stream of properties.keyExtractor
- how to extract the key from the incoming stream.valueExtractor
- how to extract the value from the incoming stream.1.1.14-SNAPSHOT - Copyright © 2019 Talend Component Kit Documentation