Class ReflectionService
java.lang.Object
org.talend.sdk.component.runtime.manager.reflect.ReflectionService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConfigFactory(Map<Class<?>, Object> precomputed, ClassLoader loader, Function<Supplier<Object>, Object> contextualSupplier, String name, org.talend.sdk.component.api.service.configuration.Configuration configuration, Annotation[] allAnnotations, Class<?> configClass) createContextualSupplier(ClassLoader loader) <T> BiFunction<String,Map<String, Object>, T> createObjectFactory(Class<T> clazz) Helper function for creating an instance from a configuration map.parameterFactory(Executable executable, Map<Class<?>, Object> precomputed, List<ParameterMeta> metas)
-
Constructor Details
-
ReflectionService
public ReflectionService()
-
-
Method Details
-
parameterFactory
public Function<Map<String,String>, parameterFactoryObject[]> (Executable executable, Map<Class<?>, Object> precomputed, List<ParameterMeta> metas) -
createContextualSupplier
-
createConfigFactory
public Function<Map<String,String>, createConfigFactoryObject> (Map<Class<?>, Object> precomputed, ClassLoader loader, Function<Supplier<Object>, throws NoSuchMethodExceptionObject> contextualSupplier, String name, org.talend.sdk.component.api.service.configuration.Configuration configuration, Annotation[] allAnnotations, Class<?> configClass) - Throws:
NoSuchMethodException
-
createObjectFactory
Helper function for creating an instance from a configuration map.- Type Parameters:
T- Type managed- Parameters:
clazz- Class of the wanted instance.- Returns:
- function that generate the wanted instance when calling
BiFunction.apply(java.lang.Object, java.lang.Object)with a config name and configurationMap.
-