Package net.xeoh.plugins.base.util

Examples of net.xeoh.plugins.base.util.PluginUtil


     * @param plugin
     *
     * @return .
     */
    public static String getExportName(Plugin plugin) {
        final Collection<Class<? extends Plugin>> primaryInterfaces = new PluginUtil(plugin).getPrimaryInterfaces();
        final Logger logger = Logger.getLogger(PluginExport.class.getName());

        if (primaryInterfaces.size() < 1) {
            logger.severe("CRITICAL ERROR: UNABLE TO GET ANY INTERFACE NAME FOR " + plugin);
            return "ERROR";
View Full Code Here


    /**
     * @param plugin
     * @return .
     */
    public static Collection<Class<? extends Plugin>> getAllPluginClasses(Plugin plugin) {
        return new PluginUtil(plugin).getAllPluginInterfaces();
    }
View Full Code Here

            this.logger.warning("Cannot export plugin, as it is null");
            return null;
        }

        final String name =  PluginExport.getExportName(plugin);
        final Class<? extends Plugin> exporter = new PluginUtil(plugin).getPrimaryInterfaces().iterator().next();

        /*
        // FIXME: Might need improvement.
        final Class<?>[] interfaces = plugin.getClass().getInterfaces();

View Full Code Here

TOP

Related Classes of net.xeoh.plugins.base.util.PluginUtil

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.