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

org.dspace.services.factory.DSpaceServicesFactory Maven / Gradle / Ivy

There is a newer version: 8.0
Show newest version
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.services.factory;

import org.dspace.kernel.ServiceManager;
import org.dspace.services.*;
import org.dspace.utils.DSpace;

/**
 * Abstract factory to get services for the services package, use DSpaceServicesFactory.getInstance() to retrieve an implementation
 */
public abstract class DSpaceServicesFactory
{
    public abstract CachingService getCachingService();

    public abstract ConfigurationService getConfigurationService();

    public abstract EmailService getEmailService();

    public abstract EventService getEventService();

    public abstract RequestService getRequestService();

    public abstract SessionService getSessionService();

    public abstract ServiceManager getServiceManager();

    public static DSpaceServicesFactory getInstance()
    {
        return new DSpace().getServiceManager().getServiceByName("dSpaceServicesFactory", DSpaceServicesFactory.class);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy