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

org.flowable.job.service.impl.ServiceImpl Maven / Gradle / Ivy

/* 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.
 */
package org.flowable.job.service.impl;

import org.flowable.engine.common.api.delegate.event.FlowableEventDispatcher;
import org.flowable.job.service.JobServiceConfiguration;
import org.flowable.job.service.impl.asyncexecutor.JobManager;
import org.flowable.job.service.impl.persistence.entity.DeadLetterJobEntityManager;
import org.flowable.job.service.impl.persistence.entity.HistoryJobEntityManager;
import org.flowable.job.service.impl.persistence.entity.JobEntityManager;
import org.flowable.job.service.impl.persistence.entity.SuspendedJobEntityManager;
import org.flowable.job.service.impl.persistence.entity.TimerJobEntityManager;

/**
 * @author Tijs Rademakers
 */
public class ServiceImpl {

    protected JobServiceConfiguration jobServiceConfiguration;

    public ServiceImpl() {

    }

    public ServiceImpl(JobServiceConfiguration jobServiceConfiguration) {
        this.jobServiceConfiguration = jobServiceConfiguration;
    }
    
    public FlowableEventDispatcher getEventDispatcher() {
        return jobServiceConfiguration.getEventDispatcher();
    }
    
    public JobManager getJobManager() {
        return jobServiceConfiguration.getJobManager();
    }

    public JobEntityManager getJobEntityManager() {
        return jobServiceConfiguration.getJobEntityManager();
    }
    
    public DeadLetterJobEntityManager getDeadLetterJobEntityManager() {
        return jobServiceConfiguration.getDeadLetterJobEntityManager();
    }
    
    public SuspendedJobEntityManager getSuspendedJobEntityManager() {
        return jobServiceConfiguration.getSuspendedJobEntityManager();
    }
    
    public TimerJobEntityManager getTimerJobEntityManager() {
        return jobServiceConfiguration.getTimerJobEntityManager();
    }
    
    public HistoryJobEntityManager getHistoryJobEntityManager() {
        return jobServiceConfiguration.getHistoryJobEntityManager();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy