protected Object execute() throws Throwable { return joinpoint.dispatch(); }
public Object run() throws Exception { try { return joinpoint.dispatch(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw e; } catch (Error e) { throw e; } catch (Throwable t) { throw new RuntimeException(t); } } }
/** * Instantiate a bean * * @param config the kernel config * @param info the bean info * @param metaData the bean metadata * @return the instantiated object * @throws Throwable for any error */ public static Object instantiate(KernelConfig config, BeanInfo info, BeanMetaData metaData) throws Throwable { boolean trace = log.isTraceEnabled(); if (trace) log.trace("Instantiating info=" + info + " metaData=" + metaData); ConstructorMetaData constructor = null; if (metaData != null) constructor = metaData.getConstructor(); Joinpoint joinPoint = getConstructorJoinPoint(config, info, constructor, metaData); return joinPoint.dispatch(); }
Object result = constructor.dispatch();
Object result = joinpoint.dispatch(); if (info == null && result != null) info = configurator.getBeanInfo(result.getClass(), accessMode);