1 22 package org.jboss.test.proxyfactory.support; 23 24 import org.jboss.aop.proxy.container.Delegate; 25 26 33 public class SimpleMixinWithConstructorAndDelegate implements Simple, Delegate 34 { 35 public static Object proxy; 36 public static Object delegate; 37 public static boolean invoked; 38 39 public SimpleMixinWithConstructorAndDelegate(Object bean) 40 { 41 proxy = bean; 42 } 43 44 public void doSomething() 45 { 46 invoked = true; 47 } 48 49 public Object getDelegate() 50 { 51 return delegate; 52 } 53 54 public void setDelegate(Object delegate) 55 { 56 SimpleMixinWithConstructorAndDelegate.delegate = delegate; 57 } 58 } 59 | Popular Tags |