Package net.xeoh.plugins.base.util

Examples of net.xeoh.plugins.base.util.JSPFProperties


    /**
     * @throws Exception
     */
    @Before
    public void setUp() throws Exception {
        final JSPFProperties props = new JSPFProperties();
        this.pm = PluginManagerFactory.createPluginManager(props);
        this.pm.addPluginsFrom(ClassURI.CLASSPATH);
    }
View Full Code Here


import net.xeoh.plugins.remote.RemoteAPI;
import net.xeoh.plugins.testplugins.testannotations.TestAnnotations;

public class JSONTest {
    public static void main(String[] args) throws URISyntaxException, InterruptedException {
        final JSPFProperties props = new JSPFProperties();

        props.setProperty(PluginManager.class, "cache.enabled", "true");
        props.setProperty(PluginManager.class, "cache.mode", "weak");
        props.setProperty(PluginManager.class, "cache.file", "jspf.cache");

        PluginManager pm = PluginManagerFactory.createPluginManager(props);
        pm.addPluginsFrom(new URI("classpath://*"));

        TestAnnotations plugin = pm.getPlugin(TestAnnotations.class);
View Full Code Here

    /**
     * @throws Exception
     */
    @Before
    public void setUp() throws Exception {
        final JSPFProperties props = new JSPFProperties();

        props.setProperty(PluginManager.class, "cache.enabled", "false");
        props.setProperty(PluginManager.class, "cache.file", "/tmp/xxxjspf.cache");
        props.setProperty(PluginManager.class, "logging.level", "ALL");

        this.pm = PluginManagerFactory.createPluginManager(props);
        this.pm.addPluginsFrom(new URI("classpath://*"));
    }
View Full Code Here

    /**
     * @throws Exception
     */
    @Before
    public void setUp() throws Exception {
        final JSPFProperties props = new JSPFProperties();

        props.setProperty(PluginManager.class, "cache.enabled", "true");
        props.setProperty(PluginManager.class, "cache.mode", "weak");
        props.setProperty(PluginManager.class, "cache.file", "jspf.cache");
        props.setProperty(PluginManager.class, "supervision.enabled", "true");
        props.setProperty(RemoteAPIImpl.class, "export.port", "12345");

        this.pm = PluginManagerFactory.createPluginManager(props);
        this.pm.addPluginsFrom(new URI("classpath://*"));
    }
View Full Code Here

public class TestTiming {
    public static void main(String[] args) {
        System.out.println(new File("bin/").toURI());
       
        final JSPFProperties props = new JSPFProperties();

        props.setProperty(PluginManager.class, "cache.enabled", "true");
        props.setProperty(PluginManager.class, "cache.mode", "weak");
        props.setProperty(PluginManager.class, "cache.file", "jspf.cache");
        props.setProperty(PluginManager.class, "logging.level", "INFO");
        props.setProperty(PluginManager.class, "classpath.filter.default.pattern", "");

        PluginManager pm = PluginManagerFactory.createPluginManager(props);
        pm.addPluginsFrom(URI.create("classpath://*"));
       
        final PluginInformation pi = pm.getPlugin(PluginInformation.class);
View Full Code Here

    /**
     * @throws Exception
     */
    @Before
    public void setUp() throws Exception {
        final JSPFProperties props = new JSPFProperties();

        props.setProperty(PluginManager.class, "supervision.enabled", "true");
        this.pm = PluginManagerFactory.createPluginManager(props);

        System.out.println(11);
        this.pm.addPluginsFrom(new URI("classpath://*"));
        System.out.println(22);
View Full Code Here

     * @throws InterruptedException
     */
    public static void main(String[] args) throws URISyntaxException,
                                          InterruptedException {

        final JSPFProperties props = new JSPFProperties();

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

        PluginManager pm = PluginManagerFactory.createPluginManager(props);

        System.out.println("X");
        pm.addPluginsFrom(new URI("classpath://*"));
 
View Full Code Here

     * @throws InterruptedException
     * @throws URISyntaxException
     */
    public static void main(String[] args) throws InterruptedException,
                                          URISyntaxException {
        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"));
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.base.util.JSPFProperties

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.