Example usage for com.google.gwt.dev.shell ModuleSpace ModuleSpace

List of usage examples for com.google.gwt.dev.shell ModuleSpace ModuleSpace

Introduction

In this page you can find the example usage for com.google.gwt.dev.shell ModuleSpace ModuleSpace.

Prototype

protected ModuleSpace(TreeLogger logger, ModuleSpaceHost host, String moduleName) 

Source Link

Usage

From source file:com.googlecode.gwt.test.internal.handlers.GeneratorCreateHandler.java

License:Apache License

private ModuleSpace createModuleSpace(ModuleSpaceHost host) {

    return new ModuleSpace(GwtTreeLogger.get(), host, moduleDef.getCanonicalName()) {

        public void createNativeMethods(TreeLogger logger, List<JsniMethod> jsniMethods,
                DispatchIdOracle dispatchIdOracle) {
            // this method should never be called
            throw new UnsupportedOperationException(
                    "ModuleSpace.createNativeMethods(..) not supported by gwt-test-utils");
        }/*from   w w  w.ja v a  2s .c o  m*/

        @Override
        protected void createStaticDispatcher(TreeLogger logger) {
            // this method should never be called
            throw new UnsupportedOperationException(
                    "ModuleSpace.createStaticDispatcher(..) not supported by gwt-test-utils");

        }

        @Override
        protected JsValue doInvoke(String name, Object jthis, Class<?>[] types, Object[] args)
                throws Throwable {
            // this method should never be called
            throw new UnsupportedOperationException("ModuleSpace.doInvoke(..) not supported by gwt-test-utils");
        }

        @Override
        protected Object getStaticDispatcher() {
            // this method should never be called
            throw new UnsupportedOperationException(
                    "ModuleSpace.getStaticDispatcher() not supported by gwt-test-utils");

        }
    };

}