Package org.apache.jetspeed.services.registry

Examples of org.apache.jetspeed.services.registry.RegistryService


        }

        //
        // get a handle to the exporter service
        //
        RegistryService exporterService = getService("Registry", "Exporter");
        RegistryService importerService = getService("RegistryImporter", "Importer");

        if (exporterService.getClass().getName().equals(importerService.getClass().getName()))
        {
            String msg =
                "Registry Importer Error: Importer Class cannot equal Exporter Class.";
            logAndPrintError(msg, null);
            System.exit(1);
View Full Code Here


        }
    }

    private static final RegistryService getService(String serviceName, String serviceMode)
    {
        RegistryService service = null;

        try
        {
            service = (RegistryService) ServiceUtil.getServiceByName(serviceName);
        }
        catch (org.apache.turbine.services.InstantiationException e)
        {
            String msg =
                "Registry Importer: error loading Registry " + serviceMode + " Service";
            logAndPrintError(msg, e);
            System.exit(1);
        }

        if (false == service.getInit())
        {
            String msg =
                "Registry Importer: error initializing Registry " + serviceMode + " Service";
            logAndPrintError(msg, null);
            System.exit(1);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.services.registry.RegistryService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.