
de.tsl2.nano.service.schedule.JobScheduleServiceBean Maven / Gradle / Ivy
/*
* 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