Package net.xeoh.plugins.informationbroker.util

Examples of net.xeoh.plugins.informationbroker.util.InformationBrokerUtil


    @Override
    public void start() {

        // Obtain the session dir (should have been set by now)
        // Return the session dir
        this.sessionDir = new InformationBrokerUtil(this.infoBroker).getItem(new StringID("global:sessionDir"), "/tmp/");

        // Create sessiondir
        new File(this.sessionDir).mkdirs();

        // Create streamer
View Full Code Here


            public void update(String item) {
                System.out.println("Hello World");
            }
        });

        final InformationBrokerUtil util = new InformationBrokerUtil(plugin);
        util.subscribeAll(new InformationListener<Void>() {;
            @Override
            public void update(Void item) {
                System.out.println("Got both");
                System.out.println(item);
                System.out.println(util.get(TestItemA.class));
                System.out.println(util.get(TestItemB.class));
                System.out.println(util.get(TestItemA.class));
                System.out.println(util.get(TestItemB.class));
            }
        }, TestItemA.class, TestItemB.class);

        System.out.println("1");
        plugin.publish(TestItemA.class, "A) Hello");
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.informationbroker.util.InformationBrokerUtil

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.