Examples of Plugin

  • org.syncany.plugins.Plugin
    A plugin can be used to store Syncany's repository files on any remote location. Implementations of the Plugin class identify a storage/transfer plugin.

    Using the 'id' attribute, plugins can be loaded by the {@link Plugins} class. Once a plugin is loaded, a corresponding {@link TransferSettings} object must be created and initialized. From the connection object, a {@link TransferManager} can then be used toupload/download files to the repository.

    Per naming convention, plugins must end by the name Plugin and extend this class. Furthermore, all plugin classes must reside in a package org.syncany.plugins.plugin-id, where plugin-id is the identifier specified by {@link #getId()}. @author Philipp C. Heckel

  • plugin.common.Plugin
  • plugins.PluginManager.tools.command.Plugin
    Plugin command used to list/load/unload/reload plugins at runtime. @author Witlospock @version 1.0
  • resources.digesters.Plugin
    Un plug-in es una extensi�n que se puede agregar a EasyBot. Por ejemplo, un robot y todos los componentes que lo conforman, son definidos como plug-ins.
    Un plug-in se crea a partir de un documento XML, y de un conjunto de reglas (tambi�n en formato XML) que permiten establecer los datos del estado del plug-in creado.
  • runjettyrun.Plugin
    The activator class controls the plug-in life cycle. @author hillenius

  • Examples of org.graylog2.plugin.Plugin

        private Set<Plugin> loadClassPathPlugins() {
            final HashSet<Plugin> plugins = Sets.newHashSet();
            final ClassLoader cl = getClass().getClassLoader();
            final Set<Class<? extends Plugin>> classes = loadPluginClasses(cl);
            for (Class<? extends Plugin> pluginClass : classes) {
                final Plugin plugin = instantiatePlugin(pluginClass);
                if (plugin != null) {
                    plugins.add(plugin);
                }
            }
    View Full Code Here

    Examples of org.gudy.azureus2.plugins.Plugin

                continue;
              }
                                 
              Class c = classLoader.loadClass(plugin_class);
                       
              Plugin      plugin  = (Plugin) c.newInstance();
          
              if ( plugin instanceof LaunchablePlugin ){
               
                preloaded_plugins.put( plugin_class, plugin );
               
    View Full Code Here

    Examples of org.hotswap.agent.annotation.Plugin

            ClassPathAnnotationScanner scanner = new ClassPathAnnotationScanner(Plugin.class.getName(), new ClassPathScanner());

            for (String plugin : scanner.scanPlugins(getClass().getClassLoader(), PluginManager.PLUGIN_PACKAGE.replace(".", "/"))) {
                Class pluginClass = Class.forName(plugin);
                Plugin pluginAnnotation = (Plugin) pluginClass.getAnnotation(Plugin.class);

                String pluginName = pluginAnnotation.name();
                String pluginDocFile = "plugin/" + pluginName + ".html";
                String pluginLink = "ha-plugins/" + pluginName.toLowerCase() + "-plugin";

                URL url = new URL(getBaseURL(getClass()) + TARGET_DIR + pluginDocFile);
                boolean docExists = markdownProcessor.processPlugin(pluginClass, url);
    View Full Code Here

    Examples of org.jboss.forge.shell.plugins.Plugin

                            + name
                            + "' must be of type '" + parmTypes[i].getSimpleName() + "'", e);
                }
             }

             Plugin plugin;
             if (bean != null)
             {
                CreationalContext<? extends Plugin> context = (CreationalContext<? extends Plugin>) manager
                         .createCreationalContext(bean);
                if (context != null)
                {
                   plugin = (Plugin) manager.getReference(bean, pluginType, context);

                   Status status = Status.FAILURE;
                   ClassLoader current = Thread.currentThread().getContextClassLoader();
                   boolean vetoed = false;
                   try
                   {
                      Thread.currentThread().setContextClassLoader(plugin.getClass().getClassLoader());
                      PreCommandExecution event = new PreCommandExecution(command, originalStatement, parameterArray);
                      manager.fireEvent(event, new Annotation[0]);
                      vetoed = event.isVetoed();
                      if (!vetoed)
                      {
    View Full Code Here

    Examples of org.jboss.seam.wiki.core.plugin.metamodel.Plugin

                response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Resource name not found");
                return;
            }

            PluginRegistry registry = PluginRegistry.instance();
            Plugin plugin = registry.getPlugin(pluginKey);
            if (plugin == null) {
                response.sendError(HttpServletResponse.SC_NOT_FOUND, "Plugin not found in registry: " + pluginKey);
                return;
            }
            PluginModule pluginModule = plugin.getModuleByKey(pluginModuleKey);
            if (pluginModule == null) {
                response.sendError(HttpServletResponse.SC_NOT_FOUND, "Plugin module not found: " + pluginKey+"."+pluginModuleKey);
                return;
            }

            org.jboss.seam.contexts.Contexts.getEventContext().set("currentPluginModule", pluginModule);

            String resourcePath = plugin.getPackageThemePath() + "/" + themeResourceName + "." + themeResourceExtension;
            InputStream in = Resources.getResourceAsStream(resourcePath, getServletContext());

            if (in != null) {

                boolean isInterpolated = false;
    View Full Code Here

    Examples of org.jivesoftware.openfire.container.Plugin

            String i18nFile = pluginName + "_i18n";

            // Retrieve classloader from pluginName.
            final XMPPServer xmppServer = XMPPServer.getInstance();
            PluginManager pluginManager = xmppServer.getPluginManager();
            Plugin plugin = pluginManager.getPlugin(pluginName);
            if (plugin == null) {
                throw new NullPointerException("Plugin could not be located: " + pluginName);
            }

            ClassLoader pluginClassLoader = pluginManager.getPluginClassloader(plugin);
    View Full Code Here

    Examples of org.jnode.plugin.Plugin

            registerArguments(ARG_ACTION);
        }

        public void execute() throws NameNotFoundException, PluginException {
            final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
            final Plugin p =
                mgr.getRegistry().getPluginDescriptor("org.jnode.fs.jifs.def").getPlugin();
            switch (ARG_ACTION.getValue()) {
                case start:
                    p.start();
                    break;
                case stop:
                    p.stop();
                    break;
                case restart:
                    p.stop();
                    p.start();
                    break;
            }
        }
    View Full Code Here

    Examples of org.joget.plugin.base.Plugin

            }
            return null;
        }
       
        private static Plugin loadPlugin(String className) {
            Plugin plugin = null;
            if (className != null && !className.isEmpty()) {
                PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager");
                plugin = pluginManager.getPlugin(className);
            }
            return plugin;
    View Full Code Here

    Examples of org.jtalks.jcommune.plugin.api.core.Plugin

         */
        private ModelAndView getModel(PluginConfiguration configuration) {
            Map<String, String> labels = new HashMap<>();
            List<Plugin> plugins = pluginLoader.getPlugins(new NameFilter(configuration.getName()));
            if (!plugins.isEmpty()) {
                Plugin plugin = plugins.get(0);
                if (plugin != null) {
                    labels = translatePropertiesLabels(configuration.getProperties(), plugin);
                }
            }
            return new ModelAndView("plugin/pluginConfiguration")
    View Full Code Here

    Examples of org.molgenis.model.elements.Plugin

        for (UISchema screen : schema.getChildren())
        {
          if (screen.getClass() == Plugin.class)
          {

            Plugin plugin = (Plugin) screen;

            String fullKlazzName = plugin.getPluginType();
            String packageName = fullKlazzName;
            if (fullKlazzName.contains(".")) packageName = fullKlazzName.substring(0,
                fullKlazzName.lastIndexOf("."));

            String shortKlazzName = fullKlazzName;
            if (fullKlazzName.contains(".")) shortKlazzName = fullKlazzName.substring(fullKlazzName
                .lastIndexOf(".") + 1);

            File targetFile = new File(this.getHandWrittenPath(options) + "/" + fullKlazzName.replace(".", "/")
                + ".java");

            File targetFtl = new File(fullKlazzName.replace(".", "/") + ".ftl");
            // only generate if the file doesn't exist AND is not on
            // classpath
            Class<?> c = null;
            try
            {
              c = Class.forName(fullKlazzName);
              // return;
            }
            catch (ClassNotFoundException e)
            {
              logger.debug("skipped plugin " + plugin.getName() + " as it is on the classpath");
            }
            logger.debug("tested classforname on " + fullKlazzName + ": " + c);

            if (!targetFile.exists() && c == null)
            {
              File targetDir = new File(this.getHandWrittenPath(options) + "/" + packageName.replace(".", "/"));
              boolean created = targetDir.mkdirs();
              if (!created && !targetDir.exists())
              {
                throw new IOException("could not create " + targetDir);
              }

              templateArgs.put("screen", plugin);
              templateArgs.put("template", template.getName());
              templateArgs.put("clazzName", shortKlazzName);
              templateArgs.put("macroName", fullKlazzName.replace(".", "_"));
              templateArgs.put("templatePath", targetFtl.toString().replace("\\", "/"));
              templateArgs.put("package", packageName);
              templateArgs.put("flavor", plugin.getFlavor().toString().toLowerCase());

              OutputStream targetOut = new FileOutputStream(targetFile);
              template.process(templateArgs, new OutputStreamWriter(targetOut, Charset.forName("UTF-8")));
              targetOut.close();
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.