Examples of Interceptor


Examples of org.jboss.mx.interceptor.Interceptor

         }
      }

      try
      {
         Interceptor i = invocation.nextInterceptor();
         return i.invoke(invocation);
      }
      finally
      {
         // restore previous security context
         if (subject != null)
View Full Code Here

Examples of org.jboss.proxy.Interceptor

         SealedObject sarg = new SealedObject(arg, encryptCipher);
         args[a] = sarg;
         log.debug(" Sealed arg("+a+"): "+arg);
      }

      Interceptor next = getNext();
      Object value = next.invoke(mi);
      if( value instanceof SealedObject )
      {
         SealedObject svalue = (SealedObject) value;
         value = svalue.getObject(decryptCipher);
      }
View Full Code Here

Examples of org.jboss.seam.intercept.Interceptor

      for ( Annotation annotation: getBeanClass().getAnnotations() )
      {
         if ( annotation.annotationType().isAnnotationPresent(INTERCEPTORS) )
         {
            Class[] classes = value( annotation.annotationType().getAnnotation(INTERCEPTORS) );
            addInterceptor( new Interceptor(classes, annotation, this) );
         }
         if ( annotation.annotationType().isAnnotationPresent(Interceptors.class) )
         {
            Class[] classes = annotation.annotationType().getAnnotation(Interceptors.class).value();
            addInterceptor( new Interceptor(classes, annotation, this) );
         }
      }

      newSort(interceptors);
View Full Code Here

Examples of org.jboss.seam.intercept.Interceptor

   public void addInterceptor(Object interceptorInstance)
   {
      try
      {
         addInterceptor(new Interceptor(interceptorInstance, this));
      }
      catch (NoClassDefFoundError e)
      {
         log.debug("Unable to load interceptor " + interceptorInstance.getClass(), e);
      }
View Full Code Here

Examples of org.jbpm.client.impl.Interceptor

  public Object construct(WireContext wireContext) {
    CommandService interceptedCommandService = commandService;
    if (interceptorDescriptors!=null) {
      for (int i=interceptorDescriptors.size()-1 ; i>=0; i--) {
        Descriptor descriptor = interceptorDescriptors.get(i);
        Interceptor interceptor = (Interceptor) descriptor.construct(wireContext);
        interceptor.setNext(interceptedCommandService);
        interceptedCommandService = interceptor;
      }
    }
    return interceptedCommandService;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.svc.Interceptor

  public Object construct(WireContext wireContext) {
    CommandService interceptedCommandService = commandService;
    if (interceptorDescriptors!=null) {
      for (int i=interceptorDescriptors.size()-1 ; i>=0; i--) {
        Descriptor descriptor = interceptorDescriptors.get(i);
        Interceptor interceptor = (Interceptor) descriptor.construct(wireContext);
        interceptor.setNext(interceptedCommandService);
        interceptedCommandService = interceptor;
      }
    }
    return interceptedCommandService;
  }
View Full Code Here

Examples of org.jibeframework.core.annotation.Interceptor

    try {
      final String remoteMethod = (String) context.getParams().get("remoteMethod");
      argumentsResolver.initializeArgumentCandidates(context);
      MethodHolder methodHolder = methodService.resolveHolder(remoteMethod);
      if (methodHolder != null) {
        Interceptor interceptor = methodHolder.getMethod().getAnnotation(Interceptor.class);
        if (interceptor != null) {
          for (String intercName : interceptor.value()) {
            methodService.invokeServiceMethod(intercName);
          }
        }
        retValue = methodService.invoke(remoteMethod);
      }
View Full Code Here

Examples of org.mvel2.integration.Interceptor

      boolean firedAfter;
    }

    final TestResult result = new TestResult();

    interceptors.put("Update", new Interceptor() {
      public int doBefore(ASTNode node, VariableResolverFactory factory) {
        ((WithNode) node).getNestedStatement().getValue(null,
                factory);
        System.out.println("fired update interceptor -- before");
        result.firedBefore = true;
View Full Code Here

Examples of org.omg.PortableInterceptor.Interceptor

     * Returns the next element in the enumeration
     */

    protected Interceptor nextElement()
    {
        Interceptor result = interceptors[index];
        index += increment;
        return result;
    }
View Full Code Here

Examples of org.soybeanMilk.core.config.Interceptor

  @Test
  public void parse_interceptor() throws Exception
  {
    config=new ConfigurationParser().parse("org/soybeanMilk/test/unit/core/TestConfigurationParser-main.xml");
   
    Interceptor ii=config.getInterceptor();
   
    Assert.assertTrue(config.getExecutable("global_before") == ii.getBefore());
    Assert.assertTrue(config.getExecutable("global_after") == ii.getAfter());
    Assert.assertTrue(config.getExecutable("m1_exception") == ii.getException());
    Assert.assertEquals("executionKey", ii.getExecutionKey());
  }
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.