Examples of registerAdapter()


Examples of flex.messaging.services.Service.registerAdapter()

        String serviceId = "messaging-service";
        String serviceClass = "flex.messaging.services.MessageService";
        Service messageService = broker.createService(serviceId, serviceClass);

        messageService.registerAdapter("actionscript", "flex.messaging.services.messaging.adapters.ActionScriptAdapter");
        messageService.registerAdapter("jms", "flex.messaging.services.messaging.adapters.JMSAdapter");
        messageService.setDefaultAdapter("actionscript");

        return messageService;
    }
View Full Code Here

Examples of flex.messaging.services.Service.registerAdapter()

        String serviceClass = "flex.messaging.services.RemotingService";
        Service remotingService = broker.createService(serviceId, serviceClass);

        String adapterId = "java-object";
        String adapterClass = "flex.messaging.services.remoting.adapters.JavaAdapter";
        remotingService.registerAdapter(adapterId, adapterClass);
        remotingService.setDefaultAdapter(adapterId);

        remotingService.addDefaultChannel("my-amf");
        remotingService.addDefaultChannel("my-http");
View Full Code Here

Examples of flex.messaging.services.Service.registerAdapter()

        Service httpProxyService = broker.createService(serviceId, serviceClass);

        // Note that <properties> are not set on the service since they are
        // adapter related properties and will be configured at adapter level

        httpProxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
        httpProxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
        httpProxyService.setDefaultAdapter("http-proxy");

        httpProxyService.addDefaultChannel("my-http");
        httpProxyService.addDefaultChannel("my-amf");
View Full Code Here

Examples of flex.messaging.services.Service.registerAdapter()

        // Note that <properties> are not set on the service since they are
        // adapter related properties and will be configured at adapter level

        httpProxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
        httpProxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
        httpProxyService.setDefaultAdapter("http-proxy");

        httpProxyService.addDefaultChannel("my-http");
        httpProxyService.addDefaultChannel("my-amf");
View Full Code Here

Examples of flex.messaging.services.Service.registerAdapter()

            // Adapter Definitions
            Map svcAdapterSettings = svcSettings.getAllAdapterSettings();
            for (Iterator asIter = svcAdapterSettings.values().iterator(); asIter.hasNext();)
            {
                AdapterSettings as = (AdapterSettings) asIter.next();
                service.registerAdapter(as.getId(), as.getClassName());
                if (as.isDefault())
                {
                    service.setDefaultAdapter(as.getId());
                }
            }
View Full Code Here

Examples of flex.messaging.services.Service.registerAdapter()

            // Adapter Definitions
            Map svcAdapterSettings = svcSettings.getAllAdapterSettings();
            for (Iterator asIter = svcAdapterSettings.values().iterator(); asIter.hasNext();)
            {               
                AdapterSettings as = (AdapterSettings) asIter.next();
                service.registerAdapter(as.getId(), as.getClassName());
                if (as.isDefault())
                {
                    service.setDefaultAdapter(as.getId());
                }
            }                 
View Full Code Here

Examples of fr.soleil.comete.definition.data.controller.ChartViewerController.registerAdapter()

        if (source != null) {
            AbstractController<Object> controller = getController(source.getDataType(),
                    getTargetType());
            if (controller instanceof ChartViewerController) {
                chartViewerController = (ChartViewerController) controller;
                chartViewerController.registerAdapter(source);
            }
        }
        return chartViewerController;
    }
View Full Code Here

Examples of gcc.adapter.AdapterManager.registerAdapter()

        a.addId( "NameService" ); // this gets passed in by the J2SE 1.4 ORB
        a.setClassLoader( id.getClass().getClassLoader() );
        //a.generateSkels();
        //a.compileSkels();

        am.registerAdapter( a );
        ns.bindAdapter( a );

        //
        // Component
        //
View Full Code Here

Examples of gcc.adapter.AdapterManager.registerAdapter()

        a.setRemoteClassName( "mark.comps.AddImpl" );
        a.setRemoteInterfaceName( "mark.comps.Add" );
        a.addId( "RMI:mark.comps.Add:0000000000000000" );
        a.setClassLoader( id.getClass().getClassLoader() );

        am.registerAdapter( a );
        ns.bindAdapter( a );

        //
        // Component
        //
View Full Code Here

Examples of gcc.adapter.AdapterManager.registerAdapter()

        a.setRemoteClassName( "mark.comps.Add2Impl" );
        a.setRemoteInterfaceName( "mark.comps.Add2" );
        a.addId( "RMI:mark.comps.Add2:0000000000000000" );
        a.setClassLoader( id.getClass().getClassLoader() );

        am.registerAdapter( a );
        ns.bindAdapter( a );
    }
}
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.