Package jodd.proxetta.impl

Examples of jodd.proxetta.impl.WrapperProxettaBuilder.define()


    // wrapper over CLASS
    // resulting object has ALL interfaces
    // resulting object wraps ALL target class methods
    WrapperProxettaBuilder builder = proxetta.builder(calc.getClass());

    Class calc2Class = builder.define();

    Object object = calc2Class.newInstance();

    assertTrue(object instanceof Calc);
    assertEquals(CalcImpl.class, ProxettaUtil.getTargetClass(object.getClass()));
View Full Code Here


    // wrapper over CLASS casted to interface,
    // resulting object has ONE interface
    // ALL target methods are wrapped
    WrapperProxettaBuilder builder = proxetta.builder(calc.getClass(), Calc.class, ".CalcImpl2");

    Class<Calc> calc2Class = builder.define();

    Calc calc2 = calc2Class.newInstance();

    builder.injectTargetIntoWrapper(calc, calc2);
View Full Code Here

    // wrapper over INTERFACE
    // resulting object has ONE interface
    // only interface methods are wrapped
    WrapperProxettaBuilder builder = proxetta.builder(Calc.class, ".CalcImpl3");

    Class<Calc> calc2Class = builder.define();

    Calc calc2 = calc2Class.newInstance();

    builder.injectTargetIntoWrapper(calc, calc2);
View Full Code Here

//    proxetta.setDebugFolder("d:\\");

    WrapperProxettaBuilder builder = proxetta.builder(CalcSuper.class);

    Class<CalcSuper> calc2Class = builder.define();

    CalcSuper calc2 = calc2Class.newInstance();

    builder.injectTargetIntoWrapper(calc, calc2);
View Full Code Here

//    proxetta.setDebugFolder("d:\\");

    WrapperProxettaBuilder builder = proxetta.builder(CalcSuper.class, ".CalcSuper22");

    Class<CalcSuper> calc2Class = builder.define();

    CalcSuper calc2 = calc2Class.newInstance();

    builder.injectTargetIntoWrapper(calc, calc2);
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.