/** * Performs the actual write to the repository. This can be overridden by * a subclass if necessary. * * @param items the list of items to be persisted. * * @throws Exception thrown if error occurs during writing. */ protected void doWrite(List<? extends T> items) throws Exception { if (logger.isDebugEnabled()) { logger.debug("Writing to the repository with " + items.size() + " items."); } MethodInvoker invoker = createMethodInvoker(repository, methodName); for (T object : items) { invoker.setArguments(new Object [] {object}); doInvoke(invoker); } }
/** * Performs the actual write to the repository. This can be overridden by * a subclass if necessary. * * @param items the list of items to be persisted. * * @throws Exception thrown if error occurs during writing. */ protected void doWrite(List<? extends T> items) throws Exception { if (logger.isDebugEnabled()) { logger.debug("Writing to the repository with " + items.size() + " items."); } MethodInvoker invoker = createMethodInvoker(repository, methodName); for (T object : items) { invoker.setArguments(new Object [] {object}); doInvoke(invoker); } }