congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Interceptor
Code IndexAdd Tabnine to your IDE (free)

How to use
Interceptor
in
org.apache.openejb.test.interceptor

Best Java code snippets using org.apache.openejb.test.interceptor.Interceptor (Showing top 20 results out of 315)

origin: org.apache.openejb/openejb-itests-beans

/**
 * The interceptor method.
 * This should intercept postConstruct of the bean
 *
 * @throws runtime exceptions.
 */
@PostConstruct
public void superBeanInterceptorPostConstruct() throws Exception {
  Interceptor.profile(this, "superBeanInterceptorPostConstruct");
  return;
}
origin: org.apache.geronimo.ext.openejb/openejb-itests-beans

/**
 * 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;        
}
origin: org.apache.geronimo.ext.openejb/openejb-itests-beans

/**
 * The interceptor method. 
 * This should intercept postConstruct of the bean
 * 
 * @throws runtime exceptions.
 */    
@PostConstruct
public void superBeanInterceptorPostConstruct() throws Exception {
  Interceptor.profile(this, "superBeanInterceptorPostConstruct");
  return;
}

origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.geronimo.ext.openejb/openejb-itests-beans

/**
 * The interceptor method. 
 * This should intercept preDestroy of the bean.
 * 
 * @throws runtime exceptions.
 */    
@PreDestroy
public void superBeanInterceptorPreDestroy() throws Exception {
  Interceptor.profile(this, "superBeanInterceptorPreDestroy");
  return;
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.geronimo.ext.openejb/openejb-itests-beans

/**
 * 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;
}

origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * The interceptor method.
 * This should intercept preDestroy of the bean.
 *
 * @throws runtime exceptions.
 */
@PreDestroy
public void superBeanInterceptorPreDestroy() throws Exception {
  Interceptor.profile(this, "superBeanInterceptorPreDestroy");
  return;
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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();
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.geronimo.ext.openejb/openejb-itests-beans

/**
 * 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();
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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;
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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();
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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();
}
origin: org.apache.openejb/openejb-itests-beans

/**
 * 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);
}
origin: org.apache.geronimo.ext.openejb/openejb-itests-beans

/**
 * 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);
}

origin: org.apache.tomee/openejb-itests-interceptor-beans

/**
 * 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);
}
org.apache.openejb.test.interceptorInterceptor

Most used methods

  • profile
    This is invoked by the lifecycle interceptor callback methods that are defined inside a bean.
  • updateInterceptorsList

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now