Codota Logo
Interceptor
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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 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

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

/**
 * 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.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.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 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 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 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 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.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.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 preDestroy of the bean.
 *
 * @throws Exception runtime exceptions.
 */
@PreDestroy
public void inBeanInterceptorPreDestroy() throws Exception {
  final Map<String, Object> ctxData = Interceptor.profile(this, Thread.currentThread().getStackTrace()[4].getMethodName());
  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

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now