Package com.dtolabs.rundeck.core.execution.service

Examples of com.dtolabs.rundeck.core.execution.service.ProviderLoaderException


        for (final PluginScanner scanner : scanners) {
            final File file = scanner.scanForFile(ident);
            if (null != file) {
                log.debug("saw file: " + file);
                if (null != candidate) {
                    throw new ProviderLoaderException(
                        "More than one plugin file matched: " + file + ", and " + candidate,
                        ident.getService(), ident.getProviderName()
                    );
                }
                candidate = file;
View Full Code Here


        final Class<T> cls = pluginProviderDefs.get(ident);
        if (null != cls) {
            try {
                return createProviderForClass(service, cls);
            } catch (PluginException e) {
                throw new ProviderLoaderException(e, service.getName(), providerName);
            }
        }
        return null;
    }
View Full Code Here

        }
        final T load = loaderForIdent.load(service, providerName);
        if (null != load) {
            return load;
        } else {
            throw new ProviderLoaderException(
                "Unable to load provider: " + providerName + ", for service: " + service.getName(), service.getName(),
                providerName);
        }
    }
View Full Code Here

            //look for plugin def
            final PluginMeta pluginMeta;
            try {
                pluginMeta = getPluginMeta();
            } catch (IOException e) {
                throw new ProviderLoaderException(e, service.getName(), providerName);
            }
            if (null == pluginMeta) {
                throw new ProviderLoaderException("Unable to load plugin metadata for file: " + file, service.getName(),
                    providerName);
            }
            for (final ProviderDef pluginDef : pluginMeta.getPluginDefs()) {
                if (matchesProvider(ident, pluginDef)) {
                    final ScriptPluginProvider provider;
                    try {
                        provider = getPlugin(file, pluginDef, ident);
                    } catch (PluginException e) {
                        throw new ProviderLoaderException(e, service.getName(), providerName);
                    }
                    pluginProviderDefs.put(ident, provider);
                    break;
                }
            }
        }
        final ScriptPluginProvider scriptPluginProvider = pluginProviderDefs.get(ident);

        if (null != scriptPluginProvider) {
            try {
                return service.createScriptProviderInstance(scriptPluginProvider);
            } catch (PluginException e) {
                throw new ProviderLoaderException(e, service.getName(), providerName);
            }
        }
        return null;
    }
View Full Code Here

        if (null == fileExpandedDir) {
            final File dir;
            try {
                dir = expandScriptPlugin(file);
            } catch (IOException e) {
                throw new ProviderLoaderException(e, ident.getService(), ident.getProviderName());
            }
            fileExpandedDir = dir;
            final File script = new File(fileExpandedDir, pluginDef.getScriptFile());
            //set executable bit for script-file of the provider
            try {
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.execution.service.ProviderLoaderException

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.