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 net.sf.minuteProject.configuration.bean.system.Plugin

      }
     
      private String getPluginFileMain (GeneratorBean bean) {
        if (fileNameBuilderPlugin!=null && fileNameBuilderMethod!=null) {
          // lookup builder in the plugin
          Plugin plugin = getFileBuilderPlugin(fileNameBuilderPlugin);
          if (plugin!=null) {
            String result = getPluginBuildFileName (plugin, fileNameBuilderMethod, bean);
            if (result != null)
              return result;
          }
    View Full Code Here

    Examples of net.xeoh.plugins.base.Plugin

                timer.schedule(lateMessage, 250);

                // Instanciate the plugin
                final Constructor constructor = c.getDeclaredConstructor();
                constructor.setAccessible(true);
                final Plugin spawnedPlugin = (Plugin) constructor.newInstance();
               
                // In here spawning of the plugin worked
                final SpawnResult spawnResult = new SpawnResult(spawnedPlugin);
                spawnResult.metaInformation.pluginStatus = PluginStatus.SPAWNED;
                spawnResult.metaInformation.spawnTime = System.currentTimeMillis();
    View Full Code Here

    Examples of org.apache.archiva.model.Plugin

            ArchivaRepositoryMetadata m = new ArchivaRepositoryMetadata();
            m.setGroupId( actualMetadata.getGroupId() );

            for ( String pluginId : expectedPlugins )
            {
                Plugin p = new Plugin();
                p.setPrefix( pluginId );
                p.setArtifactId( pluginId + "-maven-plugin" );
                p.setName( "The " + pluginId + " Plugin" );
                m.getPlugins().add( p );
            }

            RepositoryMetadataWriter.write( m, expectedMetadataXml );
    View Full Code Here

    Examples of org.apache.cxf.tools.plugin.Plugin

        @Test
        public void testLoadPlugins() throws Exception {
            PluginLoader loader = PluginLoader.getInstance();
            assertEquals(3, loader.getPlugins().size());

            Plugin plugin = getPlugin(loader, 0);
            assertNotNull(plugin.getName());
           
            Map<String, FrontEnd> frontends = loader.getFrontEnds();
            assertNotNull(frontends);
            assertEquals(2, frontends.size());
    View Full Code Here

    Examples of org.apache.felix.mosgi.console.ifc.Plugin

      //   PropertyChangeListener Impl.      //
      /////////////////////////////////////////
      public void propertyChange(PropertyChangeEvent event) {
        //System.out.println("   PCE : "+event.getPropertyName());
        if (event.getPropertyName().equals(Plugin.PLUGIN_ADDED)) {
          Plugin cp=(Plugin) event.getNewValue();
          this.add(cp.getName(), cp.getGUI());
          System.out.println("Add gui \""+cp.getName()+"\" into NodePanel"/*+" :: "+cp.getGUI()*/);     
          this.a.addPropertyChangeListener(cp);
          this.pluginList.put(cp.pluginLocation(), cp);
        }else if(event.getPropertyName().equals(Plugin.PLUGIN_REMOVED)) {
          Plugin cp = (Plugin) event.getNewValue();
          String cpLoc=cp.pluginLocation();
          this.remove(cp.getGUI());
          //this.a.removePropertyChangeListener(cp);
          //this.pluginList.remove(cpLoc);
        }else if(event.getPropertyName().equals(Plugin.EMPTY_NODE)) {
          //System.out.println("******* Debug No node selected");
          this.clean();
    View Full Code Here

    Examples of org.apache.log4j.component.plugins.Plugin

                final Properties props) throws Exception {
            if ("plugin".equals(element.getNodeName())) {
                Object instance =
                        DOMConfigurator.parseElement(element, props, Plugin.class);
                if (instance instanceof Plugin) {
                    Plugin plugin = (Plugin) instance;
                    String pluginName = DOMConfigurator.subst(element.getAttribute("name"), props);
                    if (pluginName.length() > 0) {
                        plugin.setName(pluginName);
                    }
                    getPluginRegistry().addPlugin(plugin);
                    plugin.setLoggerRepository(this);

                    LogLog.debug("Pushing plugin on to the object stack.");
                    plugin.activateOptions();
                    return true;
                }
            }
            return false;
        }
    View Full Code Here

    Examples of org.apache.log4j.plugins.Plugin

    //    cc.activateOptions();
       
    //    TODO this should also be fixed up, as VFS bits and pieces might not be built in an Ant build when they don't have all the VFS jars local
        try {
          Class vfsPluginClass = Class.forName("org.apache.log4j.chainsaw.vfs.VFSPlugin");
          Plugin vfsPlugin = (Plugin) vfsPluginClass.newInstance();
          vfsPlugin.activateOptions();
          pluginRegistry.addPlugin(vfsPlugin);
          MessageCenter.getInstance().getLogger().info("Looks like VFS is available... WooHoo!");
        } catch (Throwable e) {
          MessageCenter.getInstance().getLogger().error("Doesn't look like VFS is available", e);
        }
    View Full Code Here

    Examples of org.apache.logging.log4j.core.config.plugins.Plugin

            final ResolverUtil.Test test = new PluginTest(cls);
            for (final String pkg : PACKAGES) {
                resolver.findInPackage(test, pkg);
            }
            for (final Class<?> clazz : resolver.getClasses()) {
                final Plugin plugin = clazz.getAnnotation(Plugin.class);
                final String pluginCategory = plugin.category();
                final Map<String, PluginType<?>> map = REGISTRY.getCategory(pluginCategory);
                String type = plugin.elementType().equals(Plugin.EMPTY) ? plugin.name() : plugin.elementType();
                PluginType<?> pluginType = new PluginType(clazz, type, plugin.printObject(), plugin.deferChildren());
                map.put(plugin.name().toLowerCase(), pluginType);
                final PluginAliases pluginAliases = clazz.getAnnotation(PluginAliases.class);
                if (pluginAliases != null) {
                    for (String alias : pluginAliases.value()) {
                        type =  plugin.elementType().equals(Plugin.EMPTY) ? alias : plugin.elementType();
                        pluginType = new PluginType(clazz, type, plugin.printObject(), plugin.deferChildren());
                        map.put(alias.trim().toLowerCase(), pluginType);
                    }
                }
            }
            plugins = REGISTRY.getCategory(category);
    View Full Code Here

    Examples of org.apache.maven.archiva.model.Plugin

                    metadata.setSnapshotVersion( snapshot );
                }

                for ( Element plugin : xml.getElementList( "//metadata/plugins/plugin" ) )
                {
                    Plugin p = new Plugin();
                    p.setPrefix( plugin.elementTextTrim( "prefix" ) );
                    p.setArtifactId( plugin.elementTextTrim( "artifactId" ) );
                    p.setName( plugin.elementTextTrim( "name" ) );
                    metadata.addPlugin( p );
                }

                return metadata;
            }
    View Full Code Here

    Examples of org.apache.maven.artifact.repository.metadata.Plugin

            Metadata repoMetadata = metadata.getMetadata();
            if ( repoMetadata != null )
            {
                for ( Iterator pluginIterator = repoMetadata.getPlugins().iterator(); pluginIterator.hasNext(); )
                {
                    Plugin mapping = (Plugin) pluginIterator.next();

                    String prefix = mapping.getPrefix();
                   
                    //if the prefix has already been found, don't add it again.
                    //this is to preserve the correct ordering of prefix searching (MNG-2926)
                    if ( !pluginDefinitionsByPrefix.containsKey( prefix ) )
                    {
                        String artifactId = mapping.getArtifactId();

                        org.apache.maven.model.Plugin plugin = new org.apache.maven.model.Plugin();

                        plugin.setGroupId( metadata.getGroupId() );
    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.