public void awaitTermination(@SuperCall Callable<?> zuper, @AllArguments Object[] args) throws InterruptedException { //for testing purpose trap calls for waitawaitTermination and do nothing LoggingUtil.INSTANCE.debug("awaitTermination intercepted and trapped"); } }
throw new IllegalStateException("Expected an array type for all argument annotation on " + source); boolean includeThis = !source.isStatic() && annotation.loadSilent().includeSelf(); List<StackManipulation> stackManipulations = new ArrayList<StackManipulation>(source.getParameters().size() + (includeThis ? 1 : 0)); int offset = source.isStatic() || includeThis ? 0 : 1; if (stackManipulation.isValid()) { stackManipulations.add(stackManipulation); } else if (annotation.loadSilent().value().isStrict()) { return MethodDelegationBinder.ParameterBinding.Illegal.INSTANCE;
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
@RuntimeType @BindingPriority(Integer.MAX_VALUE) public Object anyMethod( @SuperCall Callable<?> zuper, @This(optional = true) Object object, @AllArguments Object[] args) throws Exception { return zuper.call(); }
public void prepareEmbeddedWebApplicationContext(@SuperCall Callable<Void> zuper, @AllArguments Object[] args) throws Exception { TestContextHolder.INSTANCE.command(testContext -> { LoggingUtil.INSTANCE.setTextContext(testContext); testContext.addProperty(SERVLET_CONTEXT, args[0]); }); zuper.call(); }
public ConfigurableApplicationContext run( @SuperCall Callable<ConfigurableApplicationContext> zuper, @This Object object, @AllArguments Object[] args) throws Exception { AnnotationConfigEmbeddedWebApplicationContext applicationContext = (AnnotationConfigEmbeddedWebApplicationContext) zuper.call(); TestContextHolder.INSTANCE.command(testContext -> { testContext.addProperty(APP, object); if (args.length == 2) { testContext.addProperty(APP_ARGUMENTS, args[1]); } }); return applicationContext; }
public NettyServerBuilder builderForPort( @Morph InstrumentMorpher<NettyServerBuilder> morpher, @AllArguments Object[] args) { NettyServerBuilder result = TestContextHolder.INSTANCE.query(testContext -> { return morpher.morph(new Object[]{0}); }); if (result == null) { result = morpher.morph(args); } return result; } }
public void refresh( @SuperCall Callable<Void> zuper, @This ConfigurableApplicationContext applicationContext, @AllArguments Object[] args) throws Exception { TestContextHolder.INSTANCE.command(testContext -> { if (applicationContext instanceof AnnotationConfigApplicationContext) {
public ConfigurableListableBeanFactory obtainFreshBeanFactory( @SuperCall Callable<ConfigurableListableBeanFactory> zuper, @This Object applicationContext, @AllArguments Object[] args) throws Exception { DefaultListableBeanFactory beanFactory = (DefaultListableBeanFactory) zuper.call();