Mapping Extra Attributes
map("MyHandler")
.to("handlers.MyHandler")
.extraAttributes({
handlerPath = handlerLocation,
module = arguments.module
});function afterInstanceAutowire(event, interceptData){
var attribs = interceptData.mapping.getExtraAttributes();
var iData = {};
// listen to plugins only
if( structKeyExists(attribs, "handlerPath") ){
//Fill-up Intercepted MetaData
iData.handlerPath = attribs.handlerPath;
iData.module = attribs.module;
iData.oHandler = interceptData.target;
//Fire My Own Custom Interception
instance.interceptorService.processState("afterHandlerCreation",iData);
}
}Last updated
Was this helpful?