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

de.tsl2.nano.service.schedule.JobScheduleServiceBean Maven / Gradle / Ivy

Go to download

TSL2 JEE Service Access (Generic Services for Entity Access, JEE File-System-Connector, Generic Featuring, Job-Scheduling, BeanContainer, Batch, Comfortable Bean Query Definitions, JAAS, Authentification, Authorization, )

The newest version!
/*
 * File: $HeadURL$
 * Id  : $Id$
 * 
 * created by: Thomas Schneider, Thomas Schneider
 * created on: Feb 29, 2012
 * 
 * Copyright: (c) Thomas Schneider 2012, all rights reserved
 */
package de.tsl2.nano.service.schedule;

import java.io.Serializable;

import javax.ejb.Singleton;

import de.tsl2.nano.core.execution.ICRunnable;
import de.tsl2.nano.serviceaccess.ServiceFactory;

/**
 * 
 * implementation of {@link IJobScheduleLocalService} to call {@link ICRunnable}s. the {@link ICRunnable}s context will not
 * have a generic type definition to be simple.
 * 
 * @author Thomas Schneider, Thomas Schneider
 * @version $Revision$
 */
@SuppressWarnings("rawtypes")
@Singleton
//@Startup
public class JobScheduleServiceBean extends AbstractJobScheduleServiceBean> implements
        IJobScheduleLocalService>, IJobScheduleService> {

    /**
     * {@inheritDoc}
     */
    @SuppressWarnings("unchecked")
    @Override
    protected void run(Class runnable, Serializable context) {
        ICRunnable service = ServiceFactory.instance().getService(runnable);
        service.run(context);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy