Package jodd.proxetta.pointcuts

Examples of jodd.proxetta.pointcuts.AllTopMethodsPointcut


  public void testMethRefOnProxifiedClass() {
    Methref<? extends Oink> m = Methref.on(Oink.class);
    m.to().woink();
    assertEquals("woink", m.ref());

    ProxyAspect a1 = new ProxyAspect(DummyAdvice.class, new AllTopMethodsPointcut());
    ProxyProxetta pp = ProxyProxetta.withAspects(a1);
    Oink oink = (Oink) pp.builder(Oink.class).newInstance();

    assertFalse(oink.getClass().equals(Oink.class));
View Full Code Here


public class AdviceWithMethodTest {

  @Test
  public void testCollector() throws NoSuchFieldException, IllegalAccessException {
    ProxyProxetta proxetta = ProxyProxetta.withAspects(
        new ProxyAspect(CollectorAdvice.class, new AllTopMethodsPointcut())
    );

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

    Foo foo = (Foo) proxetta.builder(Foo.class).newInstance();
View Full Code Here

TOP

Related Classes of jodd.proxetta.pointcuts.AllTopMethodsPointcut

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.