/** * The interceptor method. * This should intercept postConstruct of the bean * * @throws runtime exceptions. */ @PostConstruct public void superBeanInterceptorPostConstruct() throws Exception { Interceptor.profile(this, "superBeanInterceptorPostConstruct"); return; }
/** * This is invoked by the lifecycle interceptor callback methods that are defined inside a bean. */ @SuppressWarnings("unchecked") public static Map<String, Object> profile(SuperInterceptedBean bean, String interceptorName) { Map<String, Object> ctxData = new HashMap<String, Object>(); String KEY = bean.getClass().getSimpleName(); Map<String, Object> innerMap = (HashMap<String, Object>) ctxData.get(KEY); innerMap = updateInterceptorsList(innerMap, interceptorName); ctxData.put(KEY, innerMap); return ctxData; }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @throws runtime exceptions. */ @PostConstruct public void superBeanInterceptorPostConstruct() throws Exception { Interceptor.profile(this, "superBeanInterceptorPostConstruct"); return; }
/** * This is invoked by the lifecycle interceptor callback methods that are defined inside a bean. */ @SuppressWarnings("unchecked") public static Map<String, Object> profile(final SuperInterceptedBean bean, final String interceptorName) { final Map<String, Object> ctxData = new HashMap<String, Object>(); final String KEY = bean.getClass().getSimpleName(); Map<String, Object> innerMap = (HashMap<String, Object>) ctxData.get(KEY); innerMap = updateInterceptorsList(innerMap, interceptorName); ctxData.put(KEY, innerMap); return ctxData; }
/** * The interceptor method. * This should intercept preDestroy of the bean. * * @throws runtime exceptions. */ @PreDestroy public void superBeanInterceptorPreDestroy() throws Exception { Interceptor.profile(this, "superBeanInterceptorPreDestroy"); return; }
/** * The interceptor method. * This should intercept postActivate of the bean * * @param ctx - InvocationContext * @throws runtime exceptions. */ public void ddInterceptorPostActivate(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "ddInterceptorPostActivate"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept preDestroy of the bean. * * @param ctx - InvocationContext * @throws runtime exceptions. */ public void ddInterceptorPreDestroy(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "ddInterceptorPreDestroy"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @param ctx - InvocationContext * * @throws runtime exceptions. */ public void ddInterceptorPostConstruct(InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "ddInterceptorPostConstruct"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @param ctx - InvocationContext * @throws runtime exceptions. */ public void ddInterceptorPostConstruct(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "ddInterceptorPostConstruct"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept prePassivate of the bean. * * @param ctx - InvocationContext * @throws runtime exceptions. */ public void ddInterceptorPrePassivate(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "ddInterceptorPrePassivate"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept preDestroy of the bean. * * @throws runtime exceptions. */ @PreDestroy public void superBeanInterceptorPreDestroy() throws Exception { Interceptor.profile(this, "superBeanInterceptorPreDestroy"); return; }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @param ctx - InvocationContext * @throws Exception runtime exceptions. */ @PostConstruct public void defaultInterceptorPostConstruct(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "defaultInterceptorPostConstruct"); ctx.proceed(); }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @param ctx - InvocationContext * @throws runtime exceptions. */ @PostConstruct public void classInterceptorPostConstruct(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "classInterceptorPostConstruct"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept preDestroy of the bean. * * @param ctx - InvocationContext * * @throws Exception runtime exceptions. */ @PreDestroy public void defaultInterceptorPreDestroy(InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "defaultInterceptorPreDestroy"); ctx.proceed(); }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @param ctx - InvocationContext * @throws runtime exceptions. */ @PostConstruct public void secondClassInterceptorPostConstruct(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "secondClassInterceptorPostConstruct"); ctx.proceed(); return; }
/** * The interceptor method. * This should intercept preDestroy of the bean. * * @param ctx - InvocationContext * @throws Exception runtime exceptions. */ @PreDestroy public void defaultInterceptorPreDestroy(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "defaultInterceptorPreDestroy"); ctx.proceed(); }
/** * The interceptor method. * This should intercept prePassivate of the bean. * * @param ctx - InvocationContext * @throws Exception runtime exceptions. */ @PrePassivate public void defaultInterceptorPrePassivate(final InvocationContext ctx) throws Exception { Interceptor.profile(ctx, "defaultInterceptorPrePassivate"); ctx.proceed(); }
/** * The interceptor method. * This should intercept preDestroy of the bean. * * @throws Exception runtime exceptions. */ @PreDestroy public void inBeanInterceptorPreDestroy() throws Exception { final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPreDestroy"); setContextData(ctxData); }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @throws Exception runtime exceptions. */ @PostConstruct public void inBeanInterceptorPostConstruct() throws Exception { Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostConstruct"); setContextData(ctxData); }
/** * The interceptor method. * This should intercept postConstruct of the bean * * @throws Exception runtime exceptions. */ @PostConstruct public void inBeanInterceptorPostConstruct() throws Exception { final Map<String, Object> ctxData = Interceptor.profile(this, "inBeanInterceptorPostConstruct"); setContextData(ctxData); }