Package com.softwarementors.extjs.djn.api

Examples of com.softwarementors.extjs.djn.api.RegisteredApi.addAction()


    // Create a new api programmatically
    String apiFile = config.getServletContext().getRealPath("test/ProgrammaticApi.js");
    RegisteredApi api = registry.addApi( "programmaticApi", "test/ProgrammaticApi.js", apiFile, "Djn.programmaticNamespace", "Djn.programmaticNamespace" );
   
    // Register a new action with a method
    RegisteredAction action = api.addAction( CustomRegistryConfiguratorHandlingTest.class, "MyCustomRegistryConfiguratorHandlingTest");
    Method m = getMethod( CustomRegistryConfiguratorHandlingTest.class, "test_programmaticMethod", String.class);
    action.addStandardMethod( "myProgrammaticMethod", m, false);
   
    // Register a poll method
    Method pm = getMethod( CustomRegistryConfiguratorHandlingTest.class, "test_programmaticPollMethod", Map.class);
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.