Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
builder.setStart(System.currentTimeMillis()); builder.setMethodName("doFilter"); builder.setType(Type.BUSINESS); builder.setDescription(getDescription(httpRequest)); builder.ignoreIfNoChildren();
builder.setStart(System.currentTimeMillis()); builder.setMethodName("doFilter"); builder.setType(Type.BUSINESS); builder.setDescription(getDescription(httpRequest)); builder.ignoreIfNoChildren();
builder.setStart(System.currentTimeMillis()); builder.setMethodName("doFilter"); builder.setType(Type.BUSINESS); builder.setDescription(getDescription(httpRequest)); builder.ignoreIfNoChildren();
builder.setStart(System.currentTimeMillis()); builder.setMethodName("doFilter"); builder.setType(Type.BUSINESS); builder.setDescription(getDescription(httpRequest)); builder.ignoreIfNoChildren();
builder.setStart(System.currentTimeMillis()); builder.setMethodName("doFilter"); builder.setType(Type.BUSINESS); builder.setDescription(getDescription(httpRequest)); builder.ignoreIfNoChildren();
builder.setStart(System.currentTimeMillis()); builder.setMethodName("doFilter"); builder.setType(Type.BUSINESS); builder.setDescription(getDescription(httpRequest)); builder.ignoreIfNoChildren();
Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
Builder guessType(InvocationContext ctx) { // This will only work for "unmodified" discovered types if (ctx.getMethod().isAnnotationPresent(Produces.class)) { return setType(Type.PRODUCER); } else { Annotation[][] parameterAnnotations = ctx.getMethod().getParameterAnnotations(); if (parameterAnnotations.length > 0) { for (Annotation[] annotations : parameterAnnotations) { for (Annotation annotation : annotations) { Class<? extends Annotation> type = annotation.annotationType(); if (Observes.class.equals(type)) { return setType(Type.OBSERVER); } else if (Disposes.class.equals(type)) { return setType(Type.DISPOSER); } } } } } return setType(Type.BUSINESS); }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }
@AroundConstruct public void monitorCreation(InvocationContext ctx) { init(); final Invocation.Builder builder = initBuilder(); if (interceptedBean != null) { builder.setInterceptedBean(interceptedBean); } else { builder.setDeclaringClassName(ctx.getConstructor().getDeclaringClass().getName()); } builder.setType(Type.CONSTRUCTOR); builder.setStart(System.currentTimeMillis()); builder.setMethodName(ctx.getConstructor().toString()); try { INTERCEPTOR_ACTION.perform(builder, probe, ctx); } catch (Exception e) { ProbeLogger.LOG.aroundConstructMonitoringProblem(interceptedBean, e); } }