public class ControllerConstructorInterceptor extends Object implements InstanceConstructorInterceptor
ControllerConstructorInterceptor intercepts the Controller's constructor, in order to acquire the
mapping annotation, if exist.
But, you can see we only use the first mapping value, Why?
Right now, we intercept the controller by annotation as you known, so we CAN'T know which uri patten is actually matched. Even we know, that costs a lot.
If we want to resolve that, we must intercept the Spring MVC core codes, that is not a good choice for now.
Comment by @wu-sheng
| Constructor and Description |
|---|
ControllerConstructorInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConstruct(EnhancedInstance objInst,
Object[] allArguments) |
public void onConstruct(EnhancedInstance objInst, Object[] allArguments)
onConstruct in interface InstanceConstructorInterceptorCopyright © 2021 The Apache Software Foundation. All rights reserved.