public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { delegate.lifecycleInvocationFailed(method,instance, cause); }
public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { lifecycleFailures.add(cause); delegate.lifecycleInvocationFailed(method, instance, cause); }
public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { out.println(format(LIFECYCLE_INVOCATION_FAILED, new Object[]{method, instance, cause.getMessage()})); delegate.lifecycleInvocationFailed(method, instance, cause); }
public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { out.println(format(LIFECYCLE_INVOCATION_FAILED, new Object[]{method, instance, cause.getMessage()})); delegate.lifecycleInvocationFailed(method, instance, cause); }
public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { Log log = getLog(method); if (log.isWarnEnabled()) { log.warn(format(LIFECYCLE_INVOCATION_FAILED, new Object[]{method, instance, cause.getMessage()}), cause); } delegate.lifecycleInvocationFailed(method, instance, cause); }
public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { Logger logger = getLogger(method); if (logger.isEnabledFor(Priority.WARN)) { logger.warn(format(LIFECYCLE_INVOCATION_FAILED, new Object[]{method, instance, cause.getMessage()}), cause); } delegate.lifecycleInvocationFailed(method, instance, cause); }
/** {@inheritDoc} **/ public void lifecycleInvocationFailed(final MutablePicoContainer container, final ComponentAdapter<?> componentAdapter, final Method method, final Object instance, final RuntimeException cause) { Log log = getLog(method); if (log.isWarnEnabled()) { log.warn(ComponentMonitorHelper.format(ComponentMonitorHelper.LIFECYCLE_INVOCATION_FAILED, methodToString(method), instance, cause.getMessage()), cause); } delegate.lifecycleInvocationFailed(container, componentAdapter, method, instance, cause); }
/** {@inheritDoc} **/ public void lifecycleInvocationFailed(final MutablePicoContainer container, final ComponentAdapter<?> componentAdapter, final Method method, final Object instance, final RuntimeException cause) { Logger logger = getLogger(method); if (logger.isEnabledFor(Priority.WARN)) { logger.warn(format(ComponentMonitorHelper.LIFECYCLE_INVOCATION_FAILED, methodToString(method), instance, cause.getMessage()), cause); } delegate.lifecycleInvocationFailed(container, componentAdapter, method, instance, cause); }
/** {@inheritDoc} * */ public void lifecycleInvocationFailed(final MutablePicoContainer container, final ComponentAdapter<?> componentAdapter, final Method method, final Object instance, final RuntimeException cause) { Logger logger = getLogger(method); if (logger.isWarnEnabled()) { logger.warn(format( ComponentMonitorHelper.LIFECYCLE_INVOCATION_FAILED, methodToString(method), instance, cause.getMessage()), cause); } delegate.lifecycleInvocationFailed(container, componentAdapter, method, instance, cause); }
private void invokeMethod(Object component, Method method) { if (component != null && method != null) { try { long str = System.currentTimeMillis(); currentMonitor().invoking(method, component); method.invoke(component, new Object[0]); currentMonitor().invoked(method, component, System.currentTimeMillis() - str); } catch (IllegalAccessException e) { RuntimeException re = new ReflectionLifecycleException(method.getName(), e); currentMonitor().lifecycleInvocationFailed(method, component, re); throw re; } catch (InvocationTargetException e) { RuntimeException re = new ReflectionLifecycleException(method.getName(), e); currentMonitor().lifecycleInvocationFailed(method, component, re); throw re; } } }
public void dispose(Object component) { if (component != null && component instanceof Disposable) { long str = System.currentTimeMillis(); currentMonitor().invoking(dispose, component); try { ((Disposable) component).dispose(); currentMonitor().invoked(dispose, component, System.currentTimeMillis() - str); } catch (RuntimeException cause) { currentMonitor().lifecycleInvocationFailed(dispose, component, cause); // may re-throw } } }
public void stop(Object component) { if (component != null && component instanceof Startable) { long str = System.currentTimeMillis(); currentMonitor().invoking(stop, component); try { ((Startable) component).stop(); currentMonitor().invoked(stop, component, System.currentTimeMillis() - str); } catch (RuntimeException cause) { currentMonitor().lifecycleInvocationFailed(stop, component, cause); // may re-throw } } }
public void start(Object component) { if (component != null && component instanceof Startable) { long str = System.currentTimeMillis(); currentMonitor().invoking(start, component); try { ((Startable) component).start(); currentMonitor().invoked(start, component, System.currentTimeMillis() - str); } catch (RuntimeException cause) { currentMonitor().lifecycleInvocationFailed(start, component, cause); // may re-throw } } }