1 package alt.jiapi.jazzpect.interceptor; 2 3 import java.lang.reflect.Constructor ; 4 import java.lang.reflect.AccessibleObject ; 5 6 11 class ConstructorInvocation extends Invocation implements org.aopalliance.intercept.ConstructorInvocation{ 12 13 ConstructorInvocation(Constructor constructor, Object [] args) { 14 super(null, args, constructor); 15 } 16 17 public Constructor getConstructor() { 18 return (Constructor )getStaticPart(); 19 } 20 21 public Object proceed() throws Throwable { 22 return getConstructor().newInstance(getArguments()); 23 } 24 } 25 | Popular Tags |