Package com.buschmais.jqassistant.core.plugin.api

Examples of com.buschmais.jqassistant.core.plugin.api.PluginRepositoryException


                    ReportPlugin reportPlugin = createInstance(reportPluginName);
                    if (reportPlugin != null) {
                        try {
                            reportPlugin.initialize(new HashMap<>(properties));
                        } catch (AnalysisListenerException e) {
                            throw new PluginRepositoryException("Cannot initialize plugin " + reportPluginName, e);
                        }
                        reportPlugins.add(reportPlugin);
                    }
                }
            }
View Full Code Here


     */
    protected <T> Class<T> getType(String typeName) throws PluginRepositoryException {
        try {
            return (Class<T>) Class.forName(typeName);
        } catch (ClassNotFoundException e) {
            throw new PluginRepositoryException("Cannot find class " + typeName, e);
        }
    }
View Full Code Here

    protected <T> T createInstance(String typeName) throws PluginRepositoryException {
        Class<T> type = getType(typeName);
        try {
            return type.newInstance();
        } catch (InstantiationException e) {
            throw new PluginRepositoryException("Cannot create instance of class " + type.getName(), e);
        } catch (IllegalAccessException e) {
            throw new PluginRepositoryException("Cannot access class " + typeName, e);
        }
    }
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.plugin.api.PluginRepositoryException

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.