| /******************************************************************************* |
| * Copyright (c) 2008 empolis GmbH and brox IT Solutions GmbH. All rights reserved. This program and the accompanying |
| * materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, |
| * and is available at http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: Juergen Schumacher (empolis GmbH) - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.smila.processing.test; |
| |
| import org.apache.commons.logging.Log; |
| import org.apache.commons.logging.LogFactory; |
| import org.eclipse.smila.blackboard.Blackboard; |
| import org.eclipse.smila.datamodel.AnyMap; |
| import org.eclipse.smila.processing.Pipelet; |
| import org.eclipse.smila.processing.ProcessingException; |
| |
| /** |
| * Pipelet implementation for test. Just logs the given configuration and record IDs. |
| * |
| * @author jschumacher |
| * |
| */ |
| public class Test3Pipelet implements Pipelet { |
| /** |
| * local logger. |
| */ |
| private final Log _log = LogFactory.getLog(Test3Pipelet.class); |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public void configure(final AnyMap configuration) throws ProcessingException { |
| _log.info("Test3Pipelet.configure():" + configuration); |
| } |
| |
| /** |
| * {@inheritDoc} |
| * |
| * @see org.eclipse.smila.processing.Pipelet#process(org.eclipse.smila.blackboard.Blackboard, |
| * org.eclipse.smila.datamodel.id.Id[]) |
| */ |
| @Override |
| public String[] process(final Blackboard blackboard, final String[] recordIds) throws ProcessingException { |
| _log.info("Test2Pipelet.process(): " + recordIds); |
| return recordIds; |
| } |
| } |