Examples of JSPFProperties


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

     * @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);

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

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

    /**
     * @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");
        this.pm = PluginManagerFactory.createPluginManager(props);
        this.pm.addPluginsFrom(new URI("classpath://*"));
    }
View Full Code Here

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

    /**
     * @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, "logging.level", "FINE");

        this.pm = PluginManagerFactory.createPluginManager(props);
    }
View Full Code Here

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

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

        props.setProperty(Diagnosis.class, "recording.enabled", "true");
        props.setProperty(Diagnosis.class, "recording.file", "diagnosis.record");
        props.setProperty(Diagnosis.class, "recording.format", "java/serialization");
        props.setProperty(Diagnosis.class, "analysis.stacktraces.enabled", "true");
        props.setProperty(Diagnosis.class, "analysis.stacktraces.depth", "10000");

       
        // Enable and disable plugins like this:
        props.setProperty(TestAnnotationsImpl.class, "plugin.disabled", "false");
       
        try {
            pm = PluginManagerFactory.createPluginManager(props);
           
        } catch (Exception e) {
View Full Code Here

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

    /**
     * @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");
       
        // Enable and disable plugins like this:
        props.setProperty(TestAnnotationsImpl.class, "plugin.disabled", "false");
       
       
        this.pm = PluginManagerFactory.createPluginManager(props);
        this.pm.addPluginsFrom(new URI("classpath://*"));
    }
View Full Code Here

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

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

        props.setProperty(Diagnosis.class, "recording.enabled", "true");
        props.setProperty(Diagnosis.class, "recording.file", "diagnosis.record");
        props.setProperty(Diagnosis.class, "recording.format", "java/serialization");
        props.setProperty(Diagnosis.class, "analysis.stacktraces.enabled", "true");
        props.setProperty(Diagnosis.class, "analysis.stacktraces.depth", "10000");

       
        // Enable and disable plugins like this:
        props.setProperty(TestAnnotationsImpl.class, "plugin.disabled", "false");
       
        pm = PluginManagerFactory.createPluginManager(props);
        pm.addPluginsFrom(URI.create("xxx:yyy"));
    }
View Full Code Here

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(URI.create("classpath://*"));
    }
View Full Code Here

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

    @Override
    public void init() {
        // We want to save from the first second
        processBootstrapParameters();

        final JSPFProperties props = new JSPFProperties();
        props.setProperty(RemoteAPI.class, "proxy.timeout", "1000");
        props.setProperty(RemoteDiscovery.class, "startup.locktime", "1000");
        props.setProperty(UpdateCheck.class, "update.url", "http://api.text20.net/common/versioncheck/");
        props.setProperty(UpdateCheck.class, "update.enabled", this.updatecheck);
        props.setProperty(UpdateCheck.class, "product.name", "text20.plugin");
        props.setProperty(UpdateCheck.class, "product.version", "1.3"); // TODO: Get this version number from a better place!

        setupEarlyLogging(props);

        this.logger.info("ID of this instance " + this.instanceID + " init()");
View Full Code Here

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

    /**
     * @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, "logging.level", "ALL");
        props.setProperty(PluginManager.class, "classpath.filter.default.pattern", "");

        props.setProperty(Diagnosis.class, "recording.enabled", "true");
        props.setProperty(Diagnosis.class, "recording.file", "diagnosis.record");
        props.setProperty(Diagnosis.class, "recording.format", "java/serialization");
        props.setProperty(Diagnosis.class, "analysis.stacktraces.enabled", "true");
        props.setProperty(Diagnosis.class, "analysis.stacktraces.depth", "10000");

       
        this.pm = PluginManagerFactory.createPluginManager(props);
    }
View Full Code Here

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

    /**
     * @throws Exception
     */
    @Before
    public void setUp() throws Exception {
        JSPFProperties pros = new JSPFProperties();
        pros.setProperty(PluginManager.class, "logging.level", "WARNING");
        this.pm = PluginManagerFactory.createPluginManager(pros);
        this.pm.addPluginsFrom(new URI("classpath://*"));
    }
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.