/** * Loads the source-side parameter types in the contribution classloader associated with the source component. * * @param definition the physical operation definition * @param loader the contribution classloader * @return a collection of loaded parameter types * @throws WiringException if an error occurs loading the parameter types */ private List<Class<?>> loadSourceInputTypes(PhysicalOperationDefinition definition, ClassLoader loader) throws WiringException { try { return ParameterTypeHelper.loadSourceInParameterTypes(definition, loader); } catch (ClassNotFoundException e) { throw new WiringException(e); } }
/** * Loads the source-side parameter types in the contribution classloader associated with the source component. * * @param definition the physical operation definition * @param loader the contribution classloader * @return a collection of loaded parameter types * @throws InterceptorCreationException * if an error occurs loading the parameter types */ private List<Class<?>> loadSourceInputTypes(PhysicalOperationDefinition definition, ClassLoader loader) throws InterceptorCreationException { try { return ParameterTypeHelper.loadSourceInParameterTypes(definition, loader); } catch (ClassNotFoundException e) { throw new InterceptorCreationException(e); } }
@SuppressWarnings({"unchecked"}) private List<DataType<?>> createTypes(PhysicalOperationDefinition physicalOperation, ClassLoader loader) throws BrokerException { try { List<DataType<?>> dataTypes = new ArrayList<DataType<?>>(); if (physicalOperation.getSourceParameterTypes().isEmpty()) { // no params dataTypes.add(EMPTY_TYPE); } else { List<Class<?>> types = ParameterTypeHelper.loadSourceInParameterTypes(physicalOperation, loader); for (Class<?> type : types) { dataTypes.add(new JavaClass((type))); } } return dataTypes; } catch (ClassNotFoundException e) { throw new BrokerException("Error transforming parameter", e); } }