Intercepts calls on an interface on its way to the target. These are nested "on top" of the target.
Questions tagged [method-interception]
28 questions
1
vote
1 answer
Using MethodInterceptor in Spring
I have the following configuration to intercept a method and apply advice after returning from method, But, the following configuration does not work. Could you suggest on what I am…

would_like_to_be_anon
- 1,639
- 2
- 29
- 47
1
vote
1 answer
Spring ProxyFactoryBean service interception not unique
When intercepting several service interfaces with the help of ProxyFactoryBean and MethodInterceptor, the interceptor mixes up the service interfaces for some reason when the service interface method names are the same. My questions are:
1.) Are…

subrunner
- 394
- 1
- 14
1
vote
1 answer
MethodInterceptor to retry HttpInvoker call
I am using the Spring Framework HttpInvokers on a rich client gui. Sometimes people have blips in their internet connection and the internet connection failure causes the application to crash. I would like to retry a failed method a couple times…

springcorn
- 611
- 2
- 15
- 28
1
vote
1 answer
Creating interceptors with Autofac and MVC3
I need to create a performance monitoring interceptor that will be hooked up via Autofac. Unfortunately, it's for an MVC3 project, meaning that I'm using Autofac 2.6.3, because Autofac 3 is only compatible with MVC4. As such, I cannot use the…

levelnis
- 7,665
- 6
- 37
- 61
0
votes
0 answers
Intercept methods calls of existing DLL at Runtime
How to intercept methods calls during runtime, For example, I have a DLL of my application that contains some methods that I would like to bypass or intercept to add some logs.
Can I use some techniques of AOP like Dynamic Proxy / Methods…

Mselmi Ali
- 1,139
- 2
- 18
- 28
0
votes
0 answers
How to modify methods outside the core code in c++
I have a core code that I don't want to hack.
There's like 30 objects in c++ that are updated with help of GitHub.
My software takes this code and implements a lot of things and change others.
What I need to do is to somehow use a class and method…
0
votes
0 answers
Is there a way to intercept an event in vue and continue it later?
I want to achieve something that I have seen multiple times on various sites. I'll provide a scenario so it will be easier to understand what I'm trying to achieve. Let's say I have a button which executes file downloading. Sometimes this button…

Matrix
- 437
- 5
- 18
0
votes
1 answer
.NET intercept COM method call
Before writing this I went through more than 10 questions on this topic to make sure I'm not missing smth obvious, but I couldn't find answers to this specific scenario.
I am working on an enterprise product which has (very unfortunately) inherited…

erionpc
- 368
- 3
- 15
0
votes
1 answer
bytecode tools: add method interceptor to classes (not proxy)
Javassist proxyFactory can create proxy at runtime with method interceptor. But how to add method interceptor to a class statically by modifying the class file?
For example, class Foo has 100 methods, before calling any method on an instance of Foo,…

eastwater
- 4,624
- 9
- 49
- 118
0
votes
2 answers
Rhino Method Shutter/Interceptor
i am looking for a way to intercept all method calls from JavaScript (Rhino/Java) to any and all Java-Objects (Java-Methods).
I want to:
count them (by method name & arguments)
be able to throw an exception if the method is disallowed
Is there a…

Frederic Leitenberger
- 1,949
- 24
- 32
0
votes
3 answers
AutoFac Interception, how to differentiate the inner from outer
So I'm trying to implement the concept of interception, while using autofac. I'm not doing anything fancy, like implementing dynamic interception, every class I have concrete code around.
My Code (not my real code, I found this online but it…

raterus
- 1,980
- 20
- 23
0
votes
1 answer
Postsharp AOP MethodInterception Aspect with async
In my winform programme I use Postsharp interceptor class on each control event to avoid try/catch block repetition.
The custom postsharp method:
[Serializable]
public class OnErrorShowMessageBox : MethodInterceptionAspect
{
public override void…

Julian50
- 2,462
- 1
- 21
- 30
0
votes
1 answer
Attribute-based property interception. How?
I have an abstract class for entities which are responsible for generating and returning an unique key for every Entity instance. The key generation is a bit costly and is based on the property values of the concrete entity. I already mark the…

Jani Hyytiäinen
- 5,293
- 36
- 45