Examples of After


Examples of com.linkedin.parseq.After

        tmpPredecessorTasks.add((Task<?>) promise);
      }
    }
    final List<Task<?>> predecessorTasks = Collections.unmodifiableList(tmpPredecessorTasks);

    return new After() {
      @Override
      public void run(final Task<?> task)
      {
        InternalUtil.after(new PromiseListener()
        {
View Full Code Here

Examples of net.sourceforge.stripes.action.After

                            Before annotation = method.getAnnotation(Before.class);
                            filterMethods.addBeforeMethod(annotation.stages(), method);
                    }

                    if (method.isAnnotationPresent(After.class)) {
                        After annotation = method.getAnnotation(After.class);
                        filterMethods.addAfterMethod(annotation.stages(), method);
                    }
                }
            }
    }
View Full Code Here

Examples of net.sourceforge.stripes.action.After

                            Before annotation = method.getAnnotation(Before.class);
                            filterMethods.addBeforeMethod(annotation.stages(), method);
                    }

                    if (method.isAnnotationPresent(After.class)) {
                        After annotation = method.getAnnotation(After.class);
                        filterMethods.addAfterMethod(annotation.stages(), method);
                    }
                }
            }

            filterMethodsCache.put(beanClass, filterMethods);
View Full Code Here

Examples of org.aspectj.lang.annotation.After

 
  private Advice asAdvice(Method method) {
    if (method.getAnnotations().length == 0) return null;
    Before beforeAnn = method.getAnnotation(Before.class);
    if (beforeAnn != null) return new AdviceImpl(method,beforeAnn.value(),AdviceKind.BEFORE);
    After afterAnn = method.getAnnotation(After.class);
    if (afterAnn != null) return new AdviceImpl(method,afterAnn.value(),AdviceKind.AFTER);
    AfterReturning afterReturningAnn = method.getAnnotation(AfterReturning.class);
    if (afterReturningAnn != null) {
      String pcExpr = afterReturningAnn.pointcut();
      if (pcExpr.equals("")) pcExpr = afterReturningAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_RETURNING,afterReturningAnn.returning());
View Full Code Here

Examples of org.eweb4j.mvc.interceptor.After

 
      // execute the action method
      excuteMethod(methodName);
     
      /* 方法体内的后置拦截器先执行  */
      After after = method.getAnnotation(After.class);
      if (after != null){
        // 后置拦截器
        InterExecution after_interExe = new InterExecution("after", context);
        after_interExe.execute(after.value());
        if (after_interExe.getError() != null){
          after_interExe.showErr();
          return ;
        }
      }
View Full Code Here

Examples of org.exoplatform.container.spi.After

            alreadyResolved.add(it);
            iter.remove();
         }
         return;
      }
      After a = it.getClass().getAnnotation(After.class);
      if (a != null)
      {
         // An annotation After has been defined
         String id = a.value();
         if (id == null || (id = id.trim()).isEmpty())
         {
            // No id set
            if (PropertyManager.isDevelopping())
            {
View Full Code Here

Examples of org.exoplatform.container.spi.After

            alreadyResolved.add(it);
            iter.remove();
         }
         return;
      }
      After a = it.getClass().getAnnotation(After.class);
      if (a != null)
      {
         // An annotation After has been defined
         String id = a.value();
         if (id == null || (id = id.trim()).isEmpty())
         {
            // No id set
            if (PropertyManager.isDevelopping())
            {
View Full Code Here

Examples of org.jboss.arquillian.spi.event.suite.After

   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      try
      {
         contextLifecycle.destroyTestContext(testInstance);
      }
      finally
View Full Code Here

Examples of org.jboss.arquillian.spi.event.suite.After

   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      activeContext.pop();
      contextLifecycle.destroyTestContext(testInstance);
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.event.suite.After

   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      try
      {
         contextLifecycle.destroyTestContext(testInstance);
      }
      finally
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.