Java Code Examples for org.omg.CORBA.portable.InvokeHandler

The following are top voted examples for showing how to use org.omg.CORBA.portable.InvokeHandler. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: gnuServantObject.java   Source Code and License 6 votes vote down vote up
/**
 * Convert the servant to invocation handler.
 */
public InvokeHandler servantToHandler(Servant a_servant)
{
  if (a_servant instanceof InvokeHandler)
    {
      return (InvokeHandler) a_servant;
    }
  else if (a_servant instanceof DynamicImplementation)
    {
      return new DynamicImpHandler((DynamicImplementation) a_servant);
    }
  else
    {
      throw new BAD_OPERATION(a_servant +
        " must be either InvokeHandler or " + "POA DynamicImplementation"
      );
    }
}
 
Example 2
Project: jvm-stm   File: gnuServantObject.java   Source Code and License 6 votes vote down vote up
/**
 * Convert the servant to invocation handler.
 */
public InvokeHandler servantToHandler(Servant a_servant)
{
  if (a_servant instanceof InvokeHandler)
    {
      return (InvokeHandler) a_servant;
    }
  else if (a_servant instanceof DynamicImplementation)
    {
      return new DynamicImpHandler((DynamicImplementation) a_servant);
    }
  else
    {
      throw new BAD_OPERATION(a_servant +
        " must be either InvokeHandler or " + "POA DynamicImplementation"
      );
    }
}
 
Example 3
Project: JamVM-PH   File: gnuServantObject.java   Source Code and License 6 votes vote down vote up
/**
 * Convert the servant to invocation handler.
 */
public InvokeHandler servantToHandler(Servant a_servant)
{
  if (a_servant instanceof InvokeHandler)
    {
      return (InvokeHandler) a_servant;
    }
  else if (a_servant instanceof DynamicImplementation)
    {
      return new DynamicImpHandler((DynamicImplementation) a_servant);
    }
  else
    {
      throw new BAD_OPERATION(a_servant +
        " must be either InvokeHandler or " + "POA DynamicImplementation"
      );
    }
}
 
Example 4
Project: classpath   File: gnuServantObject.java   Source Code and License 6 votes vote down vote up
/**
 * Convert the servant to invocation handler.
 */
public InvokeHandler servantToHandler(Servant a_servant)
{
  if (a_servant instanceof InvokeHandler)
    {
      return (InvokeHandler) a_servant;
    }
  else if (a_servant instanceof DynamicImplementation)
    {
      return new DynamicImpHandler((DynamicImplementation) a_servant);
    }
  else
    {
      throw new BAD_OPERATION(a_servant +
        " must be either InvokeHandler or " + "POA DynamicImplementation"
      );
    }
}
 
Example 5
Project: javify   File: gnuServantObject.java   Source Code and License 5 votes vote down vote up
/**
 * Set a servant, if it has not been previously set.
 *
 * @param a_servant a servant to set, can be null to indicate the necessity
 * for the subsequent activation.
 *
 * @throws BAD_PARAM if the passed servant is not an {@link InvokeHandler} or
 * {@link DynamicImplementation} and also not null.
 */
public void setServant(Servant a_servant)
{
  if (a_servant != null &&
    !(a_servant instanceof InvokeHandler) &&
    !(a_servant instanceof DynamicImplementation)
  )
    {
      throw new BAD_PARAM("Must be either InvokeHandler or " +
        "DynamicImplementation, but is " + a_servant
      );
    }
  servant = a_servant;
}
 
Example 6
Project: javify   File: LocalRequest.java   Source Code and License 5 votes vote down vote up
/**
 * Make an invocation and return a stream from where the results can be read
 * and throw ApplicationException, where applicable.
 */
org.omg.CORBA.portable.InputStream s_invoke(InvokeHandler handler)
  throws ApplicationException
{
  try
    {
      poa.m_orb.currents.put(Thread.currentThread(), this);

      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          return input;
        }
      else
        {
          input.mark(500);

          String id = input.read_string();
          try
            {
              input.reset();
            }
          catch (IOException ex)
            {
              InternalError ierr = new InternalError();
              ierr.initCause(ex);
              throw ierr;
            }
          throw new ApplicationException(id, input);
        }
    }
  finally
    {
      poa.m_orb.currents.remove(Thread.currentThread());
    }
}
 
Example 7
Project: jvm-stm   File: gnuServantObject.java   Source Code and License 5 votes vote down vote up
/**
 * Set a servant, if it has not been previously set.
 *
 * @param a_servant a servant to set, can be null to indicate the necessity
 * for the subsequent activation.
 *
 * @throws BAD_PARAM if the passed servant is not an {@link InvokeHandler} or
 * {@link DynamicImplementation} and also not null.
 */
public void setServant(Servant a_servant)
{
  if (a_servant != null &&
    !(a_servant instanceof InvokeHandler) &&
    !(a_servant instanceof DynamicImplementation)
  )
    {
      throw new BAD_PARAM("Must be either InvokeHandler or " +
        "DynamicImplementation, but is " + a_servant
      );
    }
  servant = a_servant;
}
 
Example 8
Project: jvm-stm   File: LocalRequest.java   Source Code and License 5 votes vote down vote up
/**
 * Make an invocation and return a stream from where the results can be read
 * and throw ApplicationException, where applicable.
 */
org.omg.CORBA.portable.InputStream s_invoke(InvokeHandler handler)
  throws ApplicationException
{
  try
    {
      poa.m_orb.currents.put(Thread.currentThread(), this);

      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          return input;
        }
      else
        {
          input.mark(500);

          String id = input.read_string();
          try
            {
              input.reset();
            }
          catch (IOException ex)
            {
              InternalError ierr = new InternalError();
              ierr.initCause(ex);
              throw ierr;
            }
          throw new ApplicationException(id, input);
        }
    }
  finally
    {
      poa.m_orb.currents.remove(Thread.currentThread());
    }
}
 
Example 9
Project: JamVM-PH   File: gnuServantObject.java   Source Code and License 5 votes vote down vote up
/**
 * Set a servant, if it has not been previously set.
 *
 * @param a_servant a servant to set, can be null to indicate the necessity
 * for the subsequent activation.
 *
 * @throws BAD_PARAM if the passed servant is not an {@link InvokeHandler} or
 * {@link DynamicImplementation} and also not null.
 */
public void setServant(Servant a_servant)
{
  if (a_servant != null &&
    !(a_servant instanceof InvokeHandler) &&
    !(a_servant instanceof DynamicImplementation)
  )
    {
      throw new BAD_PARAM("Must be either InvokeHandler or " +
        "DynamicImplementation, but is " + a_servant
      );
    }
  servant = a_servant;
}
 
Example 10
Project: JamVM-PH   File: LocalRequest.java   Source Code and License 5 votes vote down vote up
/**
 * Make an invocation and return a stream from where the results can be read
 * and throw ApplicationException, where applicable.
 */
org.omg.CORBA.portable.InputStream s_invoke(InvokeHandler handler)
  throws ApplicationException
{
  try
    {
      poa.m_orb.currents.put(Thread.currentThread(), this);

      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          return input;
        }
      else
        {
          input.mark(500);

          String id = input.read_string();
          try
            {
              input.reset();
            }
          catch (IOException ex)
            {
              InternalError ierr = new InternalError();
              ierr.initCause(ex);
              throw ierr;
            }
          throw new ApplicationException(id, input);
        }
    }
  finally
    {
      poa.m_orb.currents.remove(Thread.currentThread());
    }
}
 
Example 11
Project: classpath   File: gnuServantObject.java   Source Code and License 5 votes vote down vote up
/**
 * Set a servant, if it has not been previously set.
 *
 * @param a_servant a servant to set, can be null to indicate the necessity
 * for the subsequent activation.
 *
 * @throws BAD_PARAM if the passed servant is not an {@link InvokeHandler} or
 * {@link DynamicImplementation} and also not null.
 */
public void setServant(Servant a_servant)
{
  if (a_servant != null &&
    !(a_servant instanceof InvokeHandler) &&
    !(a_servant instanceof DynamicImplementation)
  )
    {
      throw new BAD_PARAM("Must be either InvokeHandler or " +
        "DynamicImplementation, but is " + a_servant
      );
    }
  servant = a_servant;
}
 
Example 12
Project: classpath   File: LocalRequest.java   Source Code and License 5 votes vote down vote up
/**
 * Make an invocation and return a stream from where the results can be read
 * and throw ApplicationException, where applicable.
 */
org.omg.CORBA.portable.InputStream s_invoke(InvokeHandler handler)
  throws ApplicationException
{
  try
    {
      poa.m_orb.currents.put(Thread.currentThread(), this);

      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          return input;
        }
      else
        {
          input.mark(500);

          String id = input.read_string();
          try
            {
              input.reset();
            }
          catch (IOException ex)
            {
              InternalError ierr = new InternalError();
              ierr.initCause(ex);
              throw ierr;
            }
          throw new ApplicationException(id, input);
        }
    }
  finally
    {
      poa.m_orb.currents.remove(Thread.currentThread());
    }
}
 
Example 13
Project: javify   File: gnuServantObject.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String operation, CookieHolder cookie,
  boolean forwarding_allowed
) throws gnuForwardRequest
{
  if (servant != null && !noRetain)
    {
      return servantToHandler(servant);
    }
  else
    {
      // Use servant locator to locate the servant.
      if (poa.servant_locator != null)
        {
          try
            {
              servant =
                poa.servant_locator.preinvoke(Id, poa, operation, cookie);
              return servantToHandler(servant);
            }
          catch (org.omg.PortableServer.ForwardRequest forw_ex)
            {
              if (forwarding_allowed)
                {
                  throw new gnuForwardRequest(forw_ex.forward_reference);
                }
              else
                {
                  servant =
                    ForwardedServant.create(forw_ex.forward_reference);
                  return servantToHandler(servant);
                }
            }
        }
      else
      // Use servant activator to locate the servant.
      if (poa.applies(ImplicitActivationPolicyValue.IMPLICIT_ACTIVATION) &&
        poa.applies(ServantRetentionPolicyValue.RETAIN)
      )
        {
          try
            {
              poa.activate_object_with_id(Id, servant, forwarding_allowed);
              servant = poa.id_to_servant(Id);
              return servantToHandler(servant);
            }
          catch (gnuForwardRequest forwarded)
            {
              throw forwarded;
            }
          catch (Exception ex)
            {
              BAD_OPERATION bad =
                new BAD_OPERATION("Unable to activate", Minor.Activation,
                  CompletionStatus.COMPLETED_NO
                );
              bad.initCause(ex);
              throw bad;
            }
        }
      else if (poa.default_servant != null)
        {
          servant = poa.default_servant;
          return servantToHandler(servant);
        }

      // No servant and no servant manager - throw exception.
      else
        {
          throw new BAD_OPERATION("Unable to activate", Minor.Activation,
            CompletionStatus.COMPLETED_NO
          );
        }
    }
}
 
Example 14
Project: javify   File: LocalRequest.java   Source Code and License 4 votes vote down vote up
/**
 * Make an invocation and store the result in the fields of this Request. Used
 * with DII only.
 */
public void invoke()
{
  InvokeHandler handler = object.getHandler(operation(), cookie, false);

  if (handler instanceof DynamicImpHandler)
    {
      DynamicImplementation dyn = ((DynamicImpHandler) handler).servant;
      if (serverRequest == null)
        {
          serverRequest = new LocalServerRequest(this);
        }
      try
        {
          poa.m_orb.currents.put(Thread.currentThread(), this);
          dyn.invoke(serverRequest);
        }
      finally
        {
          poa.m_orb.currents.remove(Thread.currentThread());
        }
    }
  else
    {
      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          NamedValue arg;

          // Read return value, if set.
          if (m_result != null)
            {
              m_result.value().read_value(input, m_result.value().type());
            }

          // Read returned parameters, if set.
          if (m_args != null)
            {
              for (int i = 0; i < m_args.count(); i++)
                {
                  try
                    {
                      arg = m_args.item(i);

                      // Both ARG_INOUT and ARG_OUT have this binary flag set.
                      if ((arg.flags() & ARG_OUT.value) != 0)
                        {
                          arg.value().read_value(input, arg.value().type());
                        }
                    }
                  catch (Bounds ex)
                    {
                      Unexpected.error(ex);
                    }
                }
            }
        }
      else// User exception reply
        {
          // Prepare an Any that will hold the exception.
          gnuAny exc = new gnuAny();

          exc.insert_Streamable(new StreamHolder(input));

          UnknownUserException unuex = new UnknownUserException(exc);
          m_environment.exception(unuex);
        }
    }
}
 
Example 15
Project: javify   File: LocalDelegate.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String method, CookieHolder cookie)
{
  return object.getHandler(method, cookie, false);
}
 
Example 16
Project: jvm-stm   File: gnuServantObject.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String operation, CookieHolder cookie,
  boolean forwarding_allowed
) throws gnuForwardRequest
{
  if (servant != null && !noRetain)
    {
      return servantToHandler(servant);
    }
  else
    {
      // Use servant locator to locate the servant.
      if (poa.servant_locator != null)
        {
          try
            {
              servant =
                poa.servant_locator.preinvoke(Id, poa, operation, cookie);
              return servantToHandler(servant);
            }
          catch (org.omg.PortableServer.ForwardRequest forw_ex)
            {
              if (forwarding_allowed)
                {
                  throw new gnuForwardRequest(forw_ex.forward_reference);
                }
              else
                {
                  servant =
                    ForwardedServant.create(forw_ex.forward_reference);
                  return servantToHandler(servant);
                }
            }
        }
      else
      // Use servant activator to locate the servant.
      if (poa.applies(ImplicitActivationPolicyValue.IMPLICIT_ACTIVATION) &&
        poa.applies(ServantRetentionPolicyValue.RETAIN)
      )
        {
          try
            {
              poa.activate_object_with_id(Id, servant, forwarding_allowed);
              servant = poa.id_to_servant(Id);
              return servantToHandler(servant);
            }
          catch (gnuForwardRequest forwarded)
            {
              throw forwarded;
            }
          catch (Exception ex)
            {
              BAD_OPERATION bad =
                new BAD_OPERATION("Unable to activate", Minor.Activation,
                  CompletionStatus.COMPLETED_NO
                );
              bad.initCause(ex);
              throw bad;
            }
        }
      else if (poa.default_servant != null)
        {
          servant = poa.default_servant;
          return servantToHandler(servant);
        }

      // No servant and no servant manager - throw exception.
      else
        {
          throw new BAD_OPERATION("Unable to activate", Minor.Activation,
            CompletionStatus.COMPLETED_NO
          );
        }
    }
}
 
Example 17
Project: jvm-stm   File: LocalRequest.java   Source Code and License 4 votes vote down vote up
/**
 * Make an invocation and store the result in the fields of this Request. Used
 * with DII only.
 */
public void invoke()
{
  InvokeHandler handler = object.getHandler(operation(), cookie, false);

  if (handler instanceof DynamicImpHandler)
    {
      DynamicImplementation dyn = ((DynamicImpHandler) handler).servant;
      if (serverRequest == null)
        {
          serverRequest = new LocalServerRequest(this);
        }
      try
        {
          poa.m_orb.currents.put(Thread.currentThread(), this);
          dyn.invoke(serverRequest);
        }
      finally
        {
          poa.m_orb.currents.remove(Thread.currentThread());
        }
    }
  else
    {
      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          NamedValue arg;

          // Read return value, if set.
          if (m_result != null)
            {
              m_result.value().read_value(input, m_result.value().type());
            }

          // Read returned parameters, if set.
          if (m_args != null)
            {
              for (int i = 0; i < m_args.count(); i++)
                {
                  try
                    {
                      arg = m_args.item(i);

                      // Both ARG_INOUT and ARG_OUT have this binary flag set.
                      if ((arg.flags() & ARG_OUT.value) != 0)
                        {
                          arg.value().read_value(input, arg.value().type());
                        }
                    }
                  catch (Bounds ex)
                    {
                      Unexpected.error(ex);
                    }
                }
            }
        }
      else// User exception reply
        {
          // Prepare an Any that will hold the exception.
          gnuAny exc = new gnuAny();

          exc.insert_Streamable(new StreamHolder(input));

          UnknownUserException unuex = new UnknownUserException(exc);
          m_environment.exception(unuex);
        }
    }
}
 
Example 18
Project: jvm-stm   File: LocalDelegate.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String method, CookieHolder cookie)
{
  return object.getHandler(method, cookie, false);
}
 
Example 19
Project: JamVM-PH   File: gnuServantObject.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String operation, CookieHolder cookie,
  boolean forwarding_allowed
) throws gnuForwardRequest
{
  if (servant != null && !noRetain)
    {
      return servantToHandler(servant);
    }
  else
    {
      // Use servant locator to locate the servant.
      if (poa.servant_locator != null)
        {
          try
            {
              servant =
                poa.servant_locator.preinvoke(Id, poa, operation, cookie);
              return servantToHandler(servant);
            }
          catch (org.omg.PortableServer.ForwardRequest forw_ex)
            {
              if (forwarding_allowed)
                {
                  throw new gnuForwardRequest(forw_ex.forward_reference);
                }
              else
                {
                  servant =
                    ForwardedServant.create(forw_ex.forward_reference);
                  return servantToHandler(servant);
                }
            }
        }
      else
      // Use servant activator to locate the servant.
      if (poa.applies(ImplicitActivationPolicyValue.IMPLICIT_ACTIVATION) &&
        poa.applies(ServantRetentionPolicyValue.RETAIN)
      )
        {
          try
            {
              poa.activate_object_with_id(Id, servant, forwarding_allowed);
              servant = poa.id_to_servant(Id);
              return servantToHandler(servant);
            }
          catch (gnuForwardRequest forwarded)
            {
              throw forwarded;
            }
          catch (Exception ex)
            {
              BAD_OPERATION bad =
                new BAD_OPERATION("Unable to activate", Minor.Activation,
                  CompletionStatus.COMPLETED_NO
                );
              bad.initCause(ex);
              throw bad;
            }
        }
      else if (poa.default_servant != null)
        {
          servant = poa.default_servant;
          return servantToHandler(servant);
        }

      // No servant and no servant manager - throw exception.
      else
        {
          throw new BAD_OPERATION("Unable to activate", Minor.Activation,
            CompletionStatus.COMPLETED_NO
          );
        }
    }
}
 
Example 20
Project: JamVM-PH   File: LocalRequest.java   Source Code and License 4 votes vote down vote up
/**
 * Make an invocation and store the result in the fields of this Request. Used
 * with DII only.
 */
public void invoke()
{
  InvokeHandler handler = object.getHandler(operation(), cookie, false);

  if (handler instanceof DynamicImpHandler)
    {
      DynamicImplementation dyn = ((DynamicImpHandler) handler).servant;
      if (serverRequest == null)
        {
          serverRequest = new LocalServerRequest(this);
        }
      try
        {
          poa.m_orb.currents.put(Thread.currentThread(), this);
          dyn.invoke(serverRequest);
        }
      finally
        {
          poa.m_orb.currents.remove(Thread.currentThread());
        }
    }
  else
    {
      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          NamedValue arg;

          // Read return value, if set.
          if (m_result != null)
            {
              m_result.value().read_value(input, m_result.value().type());
            }

          // Read returned parameters, if set.
          if (m_args != null)
            {
              for (int i = 0; i < m_args.count(); i++)
                {
                  try
                    {
                      arg = m_args.item(i);

                      // Both ARG_INOUT and ARG_OUT have this binary flag set.
                      if ((arg.flags() & ARG_OUT.value) != 0)
                        {
                          arg.value().read_value(input, arg.value().type());
                        }
                    }
                  catch (Bounds ex)
                    {
                      Unexpected.error(ex);
                    }
                }
            }
        }
      else// User exception reply
        {
          // Prepare an Any that will hold the exception.
          gnuAny exc = new gnuAny();

          exc.insert_Streamable(new StreamHolder(input));

          UnknownUserException unuex = new UnknownUserException(exc);
          m_environment.exception(unuex);
        }
    }
}
 
Example 21
Project: JamVM-PH   File: LocalDelegate.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String method, CookieHolder cookie)
{
  return object.getHandler(method, cookie, false);
}
 
Example 22
Project: classpath   File: gnuServantObject.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String operation, CookieHolder cookie,
  boolean forwarding_allowed
) throws gnuForwardRequest
{
  if (servant != null && !noRetain)
    {
      return servantToHandler(servant);
    }
  else
    {
      // Use servant locator to locate the servant.
      if (poa.servant_locator != null)
        {
          try
            {
              servant =
                poa.servant_locator.preinvoke(Id, poa, operation, cookie);
              return servantToHandler(servant);
            }
          catch (org.omg.PortableServer.ForwardRequest forw_ex)
            {
              if (forwarding_allowed)
                {
                  throw new gnuForwardRequest(forw_ex.forward_reference);
                }
              else
                {
                  servant =
                    ForwardedServant.create(forw_ex.forward_reference);
                  return servantToHandler(servant);
                }
            }
        }
      else
      // Use servant activator to locate the servant.
      if (poa.applies(ImplicitActivationPolicyValue.IMPLICIT_ACTIVATION) &&
        poa.applies(ServantRetentionPolicyValue.RETAIN)
      )
        {
          try
            {
              poa.activate_object_with_id(Id, servant, forwarding_allowed);
              servant = poa.id_to_servant(Id);
              return servantToHandler(servant);
            }
          catch (gnuForwardRequest forwarded)
            {
              throw forwarded;
            }
          catch (Exception ex)
            {
              BAD_OPERATION bad =
                new BAD_OPERATION("Unable to activate", Minor.Activation,
                  CompletionStatus.COMPLETED_NO
                );
              bad.initCause(ex);
              throw bad;
            }
        }
      else if (poa.default_servant != null)
        {
          servant = poa.default_servant;
          return servantToHandler(servant);
        }

      // No servant and no servant manager - throw exception.
      else
        {
          throw new BAD_OPERATION("Unable to activate", Minor.Activation,
            CompletionStatus.COMPLETED_NO
          );
        }
    }
}
 
Example 23
Project: classpath   File: LocalRequest.java   Source Code and License 4 votes vote down vote up
/**
 * Make an invocation and store the result in the fields of this Request. Used
 * with DII only.
 */
public void invoke()
{
  InvokeHandler handler = object.getHandler(operation(), cookie, false);

  if (handler instanceof DynamicImpHandler)
    {
      DynamicImplementation dyn = ((DynamicImpHandler) handler).servant;
      if (serverRequest == null)
        {
          serverRequest = new LocalServerRequest(this);
        }
      try
        {
          poa.m_orb.currents.put(Thread.currentThread(), this);
          dyn.invoke(serverRequest);
        }
      finally
        {
          poa.m_orb.currents.remove(Thread.currentThread());
        }
    }
  else
    {
      org.omg.CORBA.portable.InputStream input = v_invoke(handler);

      if (!exceptionReply)
        {
          NamedValue arg;

          // Read return value, if set.
          if (m_result != null)
            {
              m_result.value().read_value(input, m_result.value().type());
            }

          // Read returned parameters, if set.
          if (m_args != null)
            {
              for (int i = 0; i < m_args.count(); i++)
                {
                  try
                    {
                      arg = m_args.item(i);

                      // Both ARG_INOUT and ARG_OUT have this binary flag set.
                      if ((arg.flags() & ARG_OUT.value) != 0)
                        {
                          arg.value().read_value(input, arg.value().type());
                        }
                    }
                  catch (Bounds ex)
                    {
                      Unexpected.error(ex);
                    }
                }
            }
        }
      else// User exception reply
        {
          // Prepare an Any that will hold the exception.
          gnuAny exc = new gnuAny();

          exc.insert_Streamable(new StreamHolder(input));

          UnknownUserException unuex = new UnknownUserException(exc);
          m_environment.exception(unuex);
        }
    }
}
 
Example 24
Project: classpath   File: LocalDelegate.java   Source Code and License 4 votes vote down vote up
/**
 * Return the associated invocation handler.
 */
public InvokeHandler getHandler(String method, CookieHolder cookie)
{
  return object.getHandler(method, cookie, false);
}