/** * 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); } }
/** * Loads the target-side parameter types in the contribution classloader associated with the target service. * * @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<?>> loadTargetInputTypes(PhysicalOperationDefinition definition, ClassLoader loader) throws InterceptorCreationException { try { return ParameterTypeHelper.loadTargetInParameterTypes(definition, loader); } catch (ClassNotFoundException e) { throw new InterceptorCreationException(e); } }
/** * Loads the target-side output parameter types in the contribution classloader associated of the target service. * * @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<?>> loadTargetOutputTypes(PhysicalOperationDefinition definition, ClassLoader loader) throws InterceptorCreationException { List<Class<?>> types = new ArrayList<Class<?>>(); try { Class<?> outParam = ParameterTypeHelper.loadTargetOutputType(definition, loader); types.add(outParam); // TODO handle fault types // Set<Class<?>> faults = ParameterTypeHelper.loadFaultTypes(definition, loader); // types.addAll(faults); } catch (ClassNotFoundException e) { throw new InterceptorCreationException(e); } return types; }
/** * Loads the source-side output parameter types in the contribution classloader associated of 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<?>> loadSourceOutputTypes(PhysicalOperationDefinition definition, ClassLoader loader) throws InterceptorCreationException { List<Class<?>> types = new ArrayList<Class<?>>(); try { Class<?> outParam = ParameterTypeHelper.loadSourceOutputType(definition, loader); types.add(outParam); // TODO handle fault types // Set<Class<?>> faults = ParameterTypeHelper.loadFaultTypes(definition, loader); // types.addAll(faults); } catch (ClassNotFoundException e) { throw new InterceptorCreationException(e); } return types; }