Examples of echo()


Examples of com.alibaba.cooma.ext9.ManualAdaptiveClassExt.echo()

*/
public class ManualAdaptive implements ManualAdaptiveClassExt {
    public String echo(Map<String, String> config, String s) {
        ExtensionLoader<ManualAdaptiveClassExt> extensionLoader = ExtensionLoader.getExtensionLoader(ManualAdaptiveClassExt.class);
        ManualAdaptiveClassExt extension = extensionLoader.getExtension(config.get("key"));
        return extension.echo(config, s) + ManualAdaptive.class.getName();
    }
}
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.adaptive.HasAdaptiveExt.echo()

*/
@Adaptive
public class HasAdaptiveExt_ManualAdaptive implements HasAdaptiveExt {
    public String echo(URL url, String s) {
        HasAdaptiveExt addExt1 = ExtensionLoader.getExtensionLoader(HasAdaptiveExt.class).getExtension(url.getParameter("key"));
        return addExt1.echo(url, s);
    }
}
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext1.SimpleExt.echo()

            SimpleExt ext = ExtensionLoader.getExtensionLoader(SimpleExt.class).getAdaptiveExtension();

            Map<String, String> map = new HashMap<String, String>();
            URL url = new URL("p1", "1.2.3.4", 1010, "path1", map);

            String echo = ext.echo(url, "haha");
            assertEquals("Ext1Impl1-echo", echo);
        }

        {
            SimpleExt ext = ExtensionLoader.getExtensionLoader(SimpleExt.class).getAdaptiveExtension();
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext2.Ext2.echo()

        URL url = new URL("p1", "1.2.3.4", 1010, "path1", map);
       
        UrlHolder holder = new UrlHolder();
        holder.setUrl(url);
   
        String echo = ext.echo(holder, "haha");
        assertEquals("Ext2Impl1-echo", echo);
    }

    @Test
    public void test_urlHolder_getAdaptiveExtension_noExtension() throws Exception {
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext3.UseProtocolKeyExt.echo()

    @Test
    public void test_getAdaptiveExtension_protocolKey() throws Exception {
        UseProtocolKeyExt ext = ExtensionLoader.getExtensionLoader(UseProtocolKeyExt.class).getAdaptiveExtension();

        {
            String echo = ext.echo(URL.valueOf("1.2.3.4:20880"), "s");
            assertEquals("Ext3Impl1-echo", echo); // 缺省值

            Map<String, String> map = new HashMap<String, String>();
            URL url = new URL("impl3", "1.2.3.4", 1010, "path1", map);
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext6_inject.Ext6.echo()

        Ext6 ext = ExtensionLoader.getExtensionLoader(Ext6.class).getAdaptiveExtension();

        URL url = new URL("p1", "1.2.3.4", 1010, "path1");
        url = url.addParameters("ext6", "impl1");
       
        assertEquals("Ext6Impl1-echo-Ext1Impl1-echo", ext.echo(url, "ha"));
       
        Assert.assertTrue("can not find error.", LogUtil.checkNoError());
        LogUtil.stop();
       
        url = url.addParameters("simple.ext", "impl2");
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext8_add.AddExt1.echo()

*/
@Adaptive
public class AddExt1_ManualAdaptive implements AddExt1 {
    public String echo(URL url, String s) {
        AddExt1 addExt1 = ExtensionLoader.getExtensionLoader(AddExt1.class).getExtension(url.getParameter("add.ext1"));
        return addExt1.echo(url, s);
    }
}
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext8_add.AddExt2.echo()

*/
@Adaptive
public class AddExt2_ManualAdaptive implements AddExt2 {
    public String echo(URL url, String s) {
        AddExt2 addExt1 = ExtensionLoader.getExtensionLoader(AddExt2.class).getExtension(url.getParameter("add.ext2"));
        return addExt1.echo(url, s);
    }
}
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext8_add.AddExt3.echo()

*/
@Adaptive
public class AddExt3_ManualAdaptive implements AddExt3 {
    public String echo(URL url, String s) {
        AddExt3 addExt1 = ExtensionLoader.getExtensionLoader(AddExt3.class).getExtension(url.getParameter("add.ext3"));
        return addExt1.echo(url, s);
    }
}
View Full Code Here

Examples of com.alibaba.dubbo.common.extensionloader.ext8_add.AddExt4.echo()

*/
@Adaptive
public class AddExt4_ManualAdaptive implements AddExt4 {
    public String echo(URL url, String s) {
        AddExt4 addExt1 = ExtensionLoader.getExtensionLoader(AddExt4.class).getExtension(url.getParameter("add.ext4"));
        return addExt1.echo(url, s);
    }
}
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.