Package net.xeoh.plugins.base

Examples of net.xeoh.plugins.base.PluginManager


    /**
     * @param args
     */
    public static void main(String[] args) {

        PluginManager pm = PluginManagerFactory.createPluginManager();
        pm.addPluginsFrom(ClassURI.CLASSPATH);
       
       
        final AtomicInteger i = new AtomicInteger();
        pm.getPlugin(Diagnosis.class).replay("1", new DiagnosisMonitor<Serializable>() {
            @Override
            public void onStatusChange(DiagnosisStatus<Serializable> status) {
                if(!$(status.getValue()).string().contains("processadditional/param")) return;
                System.out.println(status.getValue());
                i.incrementAndGet();
View Full Code Here


     * @throws ClassNotFoundException
     */
    public static void main(String[] args) throws MalformedURLException,
                                          ClassNotFoundException {
       
        PluginManager pm = PluginManagerFactory.createPluginManager();
        List<File> list = $(".").file().dir().filter(".*jar$").print().list();
        for (File file : list) {
            pm.addPluginsFrom(file.toURI());
        }
       
        PluginInformation pi = pm.getPlugin(PluginInformation.class);
        PluginManagerUtil pmu = new PluginManagerUtil(pm);
        Collection<Plugin> plugins = pmu.getPlugins();
       
        for (Plugin plugin : plugins) {
            System.out.println(plugin + ": ");
View Full Code Here

    }
    return null;
  }
 
  private static PluginManagerUtil initialize(PluginType inType) {
    PluginManager pm = PluginManagerFactory.createPluginManager();
    String path = ConfigMain.getParameter("pluginFolder") + inType.getName() + File.separator;
    // switch here to development path for development of special plugin
    if (useDevelopmentPath){
      path = developmentPath;
    }
    pm.addPluginsFrom(new File(path).toURI());
    return new PluginManagerUtil(pm);
  }
View Full Code Here

    {
        if (GfrPluginManagerUtilGsi._INSTANCE_ == null)
        {
            try
            {
               PluginManager pmr = PluginManagerFactory.createPluginManager();
            String strError = "";
           
            try
            {
               GfrPluginManagerUtilAbs._s_addPluginsGeoforge(pmr)
View Full Code Here

        final JSPFProperties props = new JSPFProperties();

        props.setProperty(PluginManager.class, "cache.enabled", "true");
        props.setProperty(PluginManager.class, "cache.file", "myjspf.cache");

        final PluginManager pm = PluginManagerFactory.createPluginManager(props);

        DiscoveryMangerPreferencesImpl dmp = new DiscoveryMangerPreferencesImpl();
        dmp.anouncePlugin(pm, PublishMethod.JAVASCRIPT, new URI("http://xxx.com"));
        dmp.debug();
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.base.PluginManager

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.