Package com.alibaba.dubbo.common.extensionloader.ext8_add

Examples of com.alibaba.dubbo.common.extensionloader.ext8_add.AddExt2


    @Test
    public void test_AddExtension_Adaptive() throws Exception {
        ExtensionLoader<AddExt2> loader = ExtensionLoader.getExtensionLoader(AddExt2.class);
        loader.addExtension(null, AddExt2_ManualAdaptive.class);

        AddExt2 adaptive = loader.getAdaptiveExtension();
        assertTrue(adaptive instanceof AddExt2_ManualAdaptive);
    }
View Full Code Here


* @author ding.lid
*/
@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

TOP

Related Classes of com.alibaba.dubbo.common.extensionloader.ext8_add.AddExt2

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.