if (interceptorName.startsWith("ioc:"))
return ioc.get(MethodInterceptor.class, interceptorName.substring(4));
try {
if (singleton == false)
return (MethodInterceptor) Mirror.me(Lang.loadClass(interceptorName)).born();
MethodInterceptor methodInterceptor = cachedMethodInterceptor.get(interceptorName);
if (methodInterceptor == null) {
methodInterceptor = (MethodInterceptor) Mirror.me(Lang.loadClass(interceptorName)).born();
cachedMethodInterceptor.put(interceptorName, methodInterceptor);
}
return methodInterceptor;