All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.dnb.stm.processor.AbstractProcessor Maven / Gradle / Ivy

The newest version!
/**********************************************************************
 * Abstact Class AbstractProcessor
 *  
 * Copyright (c) 2005-2012, German National Library/Deutsche Nationalbibliothek
 * Adickesallee 1, D-60322 Frankfurt am Main, Federal Republic of Germany 
 *
 * This program is free software.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * Kadir Karaca Kocer -- German National Library
 * 
 **********************************************************************/

package de.dnb.stm.processor;

import org.springframework.context.ApplicationContext;

import de.dnb.stm.task.Task;

/**
 * @author Kadir Karaca Kocer -- German National Library
 *
 */
public abstract class AbstractProcessor implements Processor, Runnable
{
    /**
     * @param context Application Context
     */
    abstract public void init(ApplicationContext context);
    
	@Override
    abstract public void run();

	@Override
    abstract public Task getTask();

	@Override
    abstract public long getTaskId();

	@Override
    abstract public void setTaskId(long task_id);  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy