Package org.boris.xlloop.handler

Examples of org.boris.xlloop.handler.CompositeFunctionHandler


        this(5454, true);
    }

    public FunctionHandlerServer(int port, boolean debug) {
        super(port);
        this.handler = new CompositeFunctionHandler();
        this.debug = new DebugFunctionHandler(handler);
        this.rfh = new ReflectFunctionHandler();
        this.dfh = new DelegateFunctionHandler();
        this.info = new FunctionInformationHandler();
        setDebug(debug);
View Full Code Here


    public static void main(String[] args) throws Exception {
        System.out
                .println("XLLServer v0.0.1 - searching current directory for addins...");
        final FunctionServer fs = new FunctionServer();
        final CompositeFunctionHandler cfh = new CompositeFunctionHandler();
        final FunctionInformationHandler fifh = new FunctionInformationHandler();
        FileSystemWatcher fsw = new FileSystemWatcher(new File(DIR),
                new CallbackAdaptor() {
                    public void fileAdded(File f) {
                        registerAddin(f, fifh, cfh);
                    }
                });
        cfh.add(fifh);
        fsw.setPauseMillis(1000);
        fsw.start();
        fs.setFunctionHandler(new DebugFunctionHandler(cfh));
        fs.run();
    }
View Full Code Here

        rfh.addMethods("Reflect.", Reflect.class);
        rfh.addMethods("CSV.", CSV.class);
        rfh.addMethods("Test.", Test.class);
        rfh.addMethods("Fin.", Finance1.class);
        rfh.addMethods("", AnnotationsTest.class);
        CompositeFunctionHandler cfh = new CompositeFunctionHandler();
        cfh.add(rfh);
        cfh.add(srep);
        cfh.add(lfh);
        FunctionInformationHandler firh = new FunctionInformationHandler();
        firh.add(rfh.getFunctions());
        firh.add(lfh.getInformation());
        firh.add(srep); // add script repository as a function provider
        cfh.add(firh);
        cfh.add(new MenuHandler(new TestMenu()));
        cfh.add(new CompTest1());
        return cfh;
    }
View Full Code Here

        // Expose a function called "Eval" for the lisp handler
        FunctionInformationHandler firh = new FunctionInformationHandler();
        firh.add(lfh.getInformation());

        // Create a composite function handler
        CompositeFunctionHandler cfh = new CompositeFunctionHandler();
        cfh.add(firh);
        cfh.add(lfh);

        // Set the function handler
        fs.setFunctionHandler(new DebugFunctionHandler(cfh));

        // Run the engine
View Full Code Here

    private ReflectFunctionHandler rfh;
    private RequestExecutor re;

    public ClientServerTester() throws Exception {
        super(0);
        cfh = new CompositeFunctionHandler();
        rfh = new ReflectFunctionHandler();
        cfh.add(rfh);
        FunctionInformationHandler fifh = new FunctionInformationHandler();
        fifh.add(rfh);
        cfh.add(fifh);
View Full Code Here

TOP

Related Classes of org.boris.xlloop.handler.CompositeFunctionHandler

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.