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.apache.qpid.server.model.Plugin

        }

        public void testCreateBrokerWithPlugins()
        {
            ConfigurationEntry pluginEntry = mock(ConfigurationEntry.class);
            Plugin plugin = mock(Plugin.class);
            _brokerEntryChildren.put(Plugin.class.getSimpleName(), Arrays.asList(pluginEntry));

            RecovererProvider recovererProvider = createRecoveryProvider(new ConfigurationEntry[]{pluginEntry, _authenticationProviderEntry1},
                                                                         new ConfiguredObject[]{plugin, _authenticationProvider1});
    View Full Code Here

    Examples of org.apache.struts.action.PlugIn

         * @param config
         */
      public void initModulePlugIns( ModuleConfig moduleConfig)
      {
      PlugInConfig plugInConfigs[] = moduleConfig.findPlugInConfigs();
      PlugIn plugIns[] = new PlugIn[plugInConfigs.length];

      context.setAttribute(Globals.PLUG_INS_KEY + moduleConfig.getPrefix(), plugIns);
      for (int i = 0; i < plugIns.length; i++) {
          try {
              plugIns[i] =
    View Full Code Here

    Examples of org.bladerunnerjs.plugin.Plugin

      }
     
      @Override
      public boolean equals(Object object)
      {
        Plugin otherPlugin = (object instanceof VirtualProxyPlugin) ? ((VirtualProxyPlugin) object).plugin : (Plugin) object;
       
        return plugin == otherPlugin;
      }
    View Full Code Here

    Examples of org.brickred.socialauth.plugin.Plugin

      public <T> T getPlugin(final Class<T> clazz) throws Exception {
        Class<? extends Plugin> plugin = pluginsMap.get(clazz);
        Constructor<? extends Plugin> cons = plugin
            .getConstructor(ProviderSupport.class);
        ProviderSupport support = new ProviderSupport(getOauthStrategy());
        Plugin obj = cons.newInstance(support);
        return (T) obj;
      }
    View Full Code Here

    Examples of org.bukkit.plugin.Plugin

        // add shutdown function
        CommandsEX.onDisableFunctions.add("com.github.zathrus_writer.commandsex.helpers.Nametags#####onDisable");
      }

      public static void init(CommandsEX plugin){
        Plugin pl = Bukkit.getPluginManager().getPlugin("TagAPI");
        if (pl != null && pl.isEnabled()){
          tagAPIPresent = true;
        }
       
        new Nametags();
      }
    View Full Code Here

    Examples of org.eclipse.core.runtime.Plugin

        }
        return initializer;
      }

      private static ClasspathContainerInitializer computeClasspathContainerInitializer(String containerID) {
        Plugin jdtCorePlugin = JavaCore.getPlugin();
        if (jdtCorePlugin == null) return null;

        IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPCONTAINER_INITIALIZER_EXTPOINT_ID);
        if (extension != null) {
          IExtension[] extensions =  extension.getExtensions();
    View Full Code Here

    Examples of org.eclipse.core.runtime.Plugin

       * none was found.
       * @since 2.1
        */
      public static ClasspathVariableInitializer getClasspathVariableInitializer(String variable){

        Plugin jdtCorePlugin = JavaCore.getPlugin();
        if (jdtCorePlugin == null) return null;

        IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPVARIABLE_INITIALIZER_EXTPOINT_ID);
        if (extension != null) {
          IExtension[] extensions =  extension.getExtensions();
    View Full Code Here

    Examples of org.elasticsearch.plugins.Plugin

        private CrateLoader(Settings settings) {
            ServiceLoader<CrateComponent> crateComponents = ServiceLoader.load(CrateComponent.class);
            plugins = new ArrayList<>();
            MapBuilder<Plugin, List<OnModuleReference>> onModuleReferences = MapBuilder.newMapBuilder();
            for (CrateComponent crateComponent : crateComponents) {
                Plugin plugin = crateComponent.createPlugin(settings);
                plugins.add(plugin);
                List<OnModuleReference> list = Lists.newArrayList();
                for (Method method : plugin.getClass().getDeclaredMethods()) {
                    if (!method.getName().equals("onModule")) {
                        continue;
                    }
                    if (method.getParameterTypes().length == 0 || method.getParameterTypes().length > 1) {
                        logger.warn("Plugin: {} implementing onModule with no parameters or more than one parameter", plugin.name());
                        continue;
                    }
                    Class moduleClass = method.getParameterTypes()[0];
                    if (!Module.class.isAssignableFrom(moduleClass)) {
                        logger.warn("Plugin: {} implementing onModule by the type is not of Module type {}", plugin.name(), moduleClass);
                        continue;
                    }
                    method.setAccessible(true);
                    //noinspection unchecked
                    list.add(new OnModuleReference(moduleClass, method));
    View Full Code Here

    Examples of org.geotools.validation.PlugIn

       */
      public Validation createValidation(PlugInDTO dto) throws ValidationException, ClassNotFoundException {
        //create a PlugIn from a PlugInDTO
        Class plugInClass = null;
        plugInClass = Class.forName(dto.getClassName());
        PlugIn plugIn = new PlugIn(dto.getName(), plugInClass, dto.getDescription(), dto.getArgs());
        // copy the arguments over to the new object
        // NOTE: this may not be necessary, but we've cloned each argument and
        // hashmap here to ensure each new validation has its own unique argument
        // (and are not accidentally shared).
        Map<String, ArgumentDTO> oldArgs = dto.getArgs();
        Map<String, ArgumentDTO> newArgs = new HashMap<String, ArgumentDTO>();
        for (Iterator i = oldArgs.keySet().iterator(); i.hasNext();) {
          ArgumentDTO oldArg = (ArgumentDTO) oldArgs.get(i.next());
          ArgumentDTO newArg = (ArgumentDTO) oldArg.clone();
          newArgs.put(newArg.getName(), newArg);
        }
        // we have the default args, but we'll scan the complete list of args
        // and add any that are missing
        Map allArgs = plugIn.getPropertyMap();
        for (Iterator i = allArgs.keySet().iterator(); i.hasNext();) {
          Object thisArg = allArgs.get(i.next());
         
          if (thisArg instanceof PropertyDescriptor) {
            PropertyDescriptor thisElement = ((PropertyDescriptor) thisArg);
            String argName = thisElement.getName();
            Object argValue = thisElement.getValue(argName);
            // add keys to the map which do not contain "name", "description", or an existing key
            if (!(newArgs.containsKey(argName)) && !(argName.equals("name")) && !(argName.equals("description"))) {  //$NON-NLS-1$//$NON-NLS-2$
              ArgumentDTO newArg = new ArgumentDTO();
              newArg.setName(argName);
              newArg.setValue(argValue);
              newArgs.put(newArg.getName(), newArg);
            }
          }
        }   
        //store the complete list of Args for future use (will be overwritten by the latest test creation)
        this.allArgs = newArgs;
        //create a new validation
        Validation validation = plugIn.createValidation(getUniqueName(getTests(), "Test"),dto.getDescription(), newArgs); //$NON-NLS-1$
        return validation;
      }
    View Full Code Here

    Examples of org.gradle.api.Plugin

            }});
        }

        @Test
        public void usePluginById() {
            Plugin addedPlugin = projectsPluginHandler.apply(pluginId);
            assertThat(pluginWithIdMock, sameInstance(addedPlugin));
            assertThat(projectsPluginHandler.apply(pluginId), sameInstance(addedPlugin));

            assertThat(projectsPluginHandler.findPlugin(addedPlugin.getClass()), sameInstance(addedPlugin));
            assertThat(projectsPluginHandler.findPlugin(pluginId), sameInstance(addedPlugin));
        }
    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.