Package com.dragome.services

Examples of com.dragome.services.ServiceInvocation


{
  protected static List<ServiceInvocation> invocations= Collections.synchronizedList(new ArrayList<ServiceInvocation>());

  public static synchronized ServiceInvocation invokeMethodInClient(Class<?> type, Method method, Object[] args)
  {
    ServiceInvocation returnValue= null;
    ServiceInvocation serviceInvocation= new ServiceInvocation(type, method, args != null ? Arrays.asList(args) : new ArrayList<Object>());
    invocations.add(serviceInvocation);

    //  if (!ServiceLocator.getInstance().isMethodVoid(method))
    {
      returnValue= serviceInvocation;
View Full Code Here


  @MethodAlias(alias= "EventDispatcher.nsi")
  private static ServiceInvocation nsi(String type, String methodName, String id, List<Object> args) throws NoSuchMethodException
  {
    Class<?> forName= ServiceLocator.getInstance().getReflectionService().forName(type);
    ServiceInvocation serviceInvocation= new ServiceInvocation(forName, forName.getMethod(methodName, null), args, id);
    ScriptHelper.put("serviceInvocation", serviceInvocation, null);
    return serviceInvocation;
  }
View Full Code Here

    }

    if (!serialized)
    {
      List<Object> arguments= args != null ? Arrays.asList(args) : new ArrayList<Object>();     
      ServiceInvocation serviceInvocation= new ServiceInvocation(type, method, arguments);
      serialize= ServiceLocator.getInstance().getSerializationService().serialize(serviceInvocation);
      //      System.out.println(serialize);
    }

    Sender serverMessageChannel= ServiceLocator.getInstance().getClientToServerMessageChannel();
View Full Code Here

          ExecutorService executorService= ServiceLocator.getInstance().getExecutorService();
          executorService.execute(new Runnable()
          {
            public void run()
            {
              ServiceInvocation serviceInvocation= (ServiceInvocation) ServiceLocator.getInstance().getSerializationService().deserialize(finalMessage);
              serviceInvocation.invoke();
            }
          });
        }
      }
      while (currentMessage != null);
View Full Code Here

{
  protected static List<ServiceInvocation> invocations= Collections.synchronizedList(new ArrayList<ServiceInvocation>());

  public static synchronized ServiceInvocation invokeMethodInClient(Class<?> type, Method method, Object[] args)
  {
    ServiceInvocation returnValue= null;
    ServiceInvocation serviceInvocation= new ServiceInvocation(type, method, args != null ? Arrays.asList(args) : new ArrayList<Object>());
    invocations.add(serviceInvocation);

    if (!ServiceLocator.getInstance().isMethodVoid(method))
    {
      returnValue= serviceInvocation;
View Full Code Here

TOP

Related Classes of com.dragome.services.ServiceInvocation

Copyright © 2018 www.massapicom. 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.