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 com.dtolabs.rundeck.core.plugins.Plugin

        /**
         * Return true if the object has a valid Plugin annotation
         */
        public static boolean canBuildDescription(final Object object) {
            final Plugin annotation1 = object.getClass().getAnnotation(Plugin.class);
            return null != annotation1;
        }
    View Full Code Here

    Examples of com.facebook.presto.spi.Plugin

    {
        @Test
        public void testCreateConnector()
                throws Exception
        {
            Plugin plugin = new PostgreSqlPlugin();
            ConnectorFactory factory = getOnlyElement(plugin.getServices(ConnectorFactory.class));
            factory.create("test", ImmutableMap.of("connection-url", "test"));
        }
    View Full Code Here

    Examples of com.github.couchapptakeout.plugins.Plugin

        }


        protected void startPlugin(Class plugin, CouchDbConnector connector, CouchDbInstance couchDBInstance ) {
            try {
                Plugin instance = (Plugin)plugin.newInstance();

                // a little lame. Calling the default couchmanager? huh?
                File workingDir = createPluginWorkingDirectory(plugin, DefaultCouchManager.getWorkingDir());
                instance.start(connector, couchDBInstance, workingDir);
            } catch (Exception ex) {
                Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    View Full Code Here

    Examples of com.godshawk.lib.annotations.modularity.Plugin

        public PluginMetadata generateMetadata(Class<? extends IPlugin> plugin) {
            if (!plugin.isAnnotationPresent(Plugin.class)) {
                throw new IllegalArgumentException(String.format("Plugin %s is not annotated!", plugin.getSimpleName()));
            }
            Plugin pl = plugin.getDeclaredAnnotation(Plugin.class);
            return new PluginMetadata(pl.name(), pl.id(), pl.author(), pl.type());
        }
    View Full Code Here

    Examples of com.google.jstestdriver.Plugin

      }

      public void testParsePlugin() throws IOException {
        String jarPath = "pathto.jar";
        File jar = createTmpFile(this.tmpDirs.iterator().next(), jarPath);
        Plugin expected = new Plugin("test", jar.getAbsolutePath(), "com.test.PluginModule",
            Lists.<String>newArrayList());
        String configFile =
            String.format("plugin:\n  - name: %s\n    jar: \"%s\"\n    module: \"%s\"\n",
                "test",
                jarPath,
    View Full Code Here

    Examples of com.groupon.odo.proxylib.models.Plugin

            if (configurations == null)
                return new Plugin[0];

            for (Configuration config : configurations) {
                Plugin plugin = new Plugin();
                plugin.setId(config.getId());
                plugin.setPath(config.getValue());

                File path = new File(plugin.getPath());
                if (path.isDirectory()) {
                    plugin.setStatus(Constants.PLUGIN_STATUS_VALID);
                    plugin.setStatusMessage("Valid");
                } else {
                    plugin.setStatus(Constants.PLUGIN_STATUS_NOT_DIRECTORY);
                    plugin.setStatusMessage("Path is not a directory");
                }

                if (!onlyValid || plugin.getStatus() == Constants.PLUGIN_STATUS_VALID)
                    plugins.add(plugin);
            }

            return plugins.toArray(new Plugin[0]);
        }
    View Full Code Here

    Examples of com.hlcl.rql.as.Plugin

        CmsClient client = new CmsClient(logonGuid);

        // import a plugin from xml definition
        // file path valid on server where MS is installed
        Plugin plugin = client.importPlugin("E:\\Server\\CMS\\ASP\\PlugIns\\jrql\\cancelWaitingJobs.xml");
        System.out.println(plugin.getPluginGuid());
        System.out.println(plugin.getName() + " " + plugin.isActive());

        // assign projects to plug-in and activate
        String[] guids = { "06BE79A1D9F549388F06F6B649E27152", "73671509FA5C43ED8FC4171AD0298AD2" };
        plugin.assignProjects(guids);
        System.out.println(plugin.isActive());

        // enabling/disabling group of plug-ins
        List<Plugin> enabledPlugins = client.enablePluginsByNameContains("PROD", true);
        System.out.println(enabledPlugins);
        List<Plugin> disabledPlugins = client.disablePluginsByNameContains("PROD", true);
    View Full Code Here

    Examples of com.jcloisterzone.ui.plugin.Plugin

            List<String> pluginPaths = config.getPlugins();

            if (pluginPaths != null) {
                for (String pluginPath : pluginPaths) {
                    try {
                        Plugin plugin = Plugin.loadPlugin(pluginPath);
                        plugins.addFirst(plugin);
                        logger.info("plugin <{}> loaded", plugin);
                    } catch (Exception e) {
                        logger.error("Unable to load plugin " + pluginPath, e);
                    }
    View Full Code Here

    Examples of com.sun.source.util.Plugin

                        pluginsToCall.add(List.from(plugin.split("\\s+")));
                    }
                    JavacTask task = null;
                    Iterator<Plugin> iter = sl.iterator();
                    while (iter.hasNext()) {
                        Plugin plugin = iter.next();
                        for (List<String> p: pluginsToCall) {
                            if (plugin.getName().equals(p.head)) {
                                pluginsToCall.remove(p);
                                try {
                                    if (task == null)
                                        task = JavacTask.instance(pEnv);
                                    plugin.init(task, p.tail.toArray(new String[p.tail.size()]));
                                } catch (Throwable ex) {
                                    if (apiMode)
                                        throw new RuntimeException(ex);
                                    pluginMessage(ex);
                                    return Result.SYSERR;
    View Full Code Here

    Examples of com.sun.tools.internal.xjc.Plugin

            if( !isSupportedExtension(uri) ) {
                // recognizable but not not supported, meaning
                // the plug-in isn't enabled

                // look for plug-in that handles this URI
                Plugin owner = null;
                for( Plugin p : options.getAllPlugins() ) {
                    if(p.getCustomizationURIs().contains(uri)) {
                        owner = p;
                        break;
                    }
                }
                if(owner!=null)
                    // we know the plug-in that supports this namespace, but it's not enabled
                    error( Messages.ERR_PLUGIN_NOT_ENABLED.format(owner.getOptionName(),uri));
                else {
                    // this shouldn't happen, but be defensive...
                    error( Messages.ERR_UNSUPPORTED_EXTENSION.format(uri) );
                }
            }
    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.