Examples of InvocationContext


Examples of org.jboss.invocation.InvocationContext

      // It is a home invocation
      invocation.setType(InvocationType.HOME);

      // Create an invocation context for the invocation
      InvocationContext ctx = new InvocationContext();
      invocation.setInvocationContext(ctx);
     
      // Get the invoker to the target server (cluster or node)

      // Ship it
View Full Code Here

Examples of org.jboss.mx.server.InvocationContext

     
      for (int i = 0; i < operations.length; ++i)
      {
         OperationKey key = new OperationKey(operations[i]);
        
         InvocationContext ctx = (InvocationContext)operationContextMap.get(key);
        
         ctx.setDescriptor(((ModelMBeanOperationInfo)operations[i]).getDescriptor());     
      }
   }
View Full Code Here

Examples of org.jboss.seam.intercept.InvocationContext

      final InvocationControl invocationBControl = new InvocationControl("B");
      final InvocationControl invocationCControl = new InvocationControl("C");
     
      final Map<String, Foo> invocationResults = new HashMap<String, Foo>();
     
      final InvocationContext invocationA = new MockInvocationContext() {
         @Override public Object getTarget() { return fooBar; }        
         @Override public Method getMethod() { return m; }
         @Override public Object[] getParameters() { return new Object[] { invocationAControl }; }
         @Override public Object proceed() throws Exception { return Reflections.invoke(getMethod(), getTarget(), getParameters()); }
      };

      final InvocationContext invocationB = new MockInvocationContext() {
         @Override public Object getTarget() { return fooBar; }        
         @Override public Method getMethod() { return m; }
         @Override public Object[] getParameters() { return new Object[] { invocationBControl }; }
         @Override public Object proceed() throws Exception { return Reflections.invoke(getMethod(), getTarget(), getParameters()); }
      };
     
      final InvocationContext invocationC = new MockInvocationContext() {
         @Override public Object getTarget() { return fooBar; }        
         @Override public Method getMethod() { return m; }
         @Override public Object[] getParameters() { return new Object[] { invocationCControl }; }
         @Override public Object proceed() throws Exception { return Reflections.invoke(getMethod(), getTarget(), getParameters()); }
      };
View Full Code Here

Examples of org.jboss.wsf.spi.invocation.InvocationContext

    * @param invocation current invocation
    * @return web service context or null if not available
    */
   private WebServiceContext getWebServiceContext(final Invocation invocation)
   {
      final InvocationContext invocationContext = invocation.getInvocationContext();

      return new WebServiceContextAdapter(invocationContext.getAttachment(WebServiceContext.class));
   }
View Full Code Here

Examples of org.ogce.gfac.context.InvocationContext

public class PropertiesBasedServiceImplTest {

  @Test
  public void testInit() {
    try{
      InvocationContext ct = new InvocationContext();
      ct.setExecutionContext(new ExecutionContextImpl());
     
      PropertiesBasedServiceImpl service = new PropertiesBasedServiceImpl();
      service.init();
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

Examples of play.Invoker.InvocationContext

        }

        @Override
        public InvocationContext getInvocationContext() {
            ActionInvoker.resolve(request, response);
            return new InvocationContext(Http.invocationType,
                    request.invokedMethod.getAnnotations(),
                    request.invokedMethod.getDeclaringClass().getAnnotations());
        }
View Full Code Here

Examples of project.gluebooster.math.functions.InvocationContext

           }
          
           Pair<BoostFunction<RootDoc, RootDoc, InvocationContext>, Class> transformerAndDoclet = parseOptions(rootDoc.options());
          
          if (transformerAndDoclet.getFirst() != null)
             rootDoc = transformerAndDoclet.getFirst().valueOf(rootDoc, new InvocationContext());
         
         
          transformerAndDoclet.getSecond().getMethod("start", RootDoc.class).invoke(null, rootDoc);
         
          //System.out.println("DocletWithTransformerAndInternalDoclet ends");
View Full Code Here

Examples of yalp.Invoker.InvocationContext

    Date nextPlannedExecution = null;

    @Override
    public InvocationContext getInvocationContext() {
        return new InvocationContext(invocationType, this.getClass().getAnnotations());
    }
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.