1. /*
  2. * @(#)InvocationInfo.java 1.6 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.POA;
  8. import java.util.*;
  9. import org.omg.PortableServer.POA;
  10. import org.omg.PortableServer.Servant;
  11. import org.omg.PortableServer.ServantLocatorPackage.CookieHolder;
  12. public class InvocationInfo{
  13. // These fields are to support standard OMG APIs.
  14. private POA _poa;
  15. private byte[] _id;
  16. /// These fields are to support the POA implementation.
  17. private Servant _servant;
  18. private CookieHolder _cookieHolder;
  19. private String _operation;
  20. private boolean _preInvokeCalled;
  21. private boolean _postInvokeCalled;
  22. public InvocationInfo(POA poa, byte[] id, CookieHolder cookieHolder,
  23. String operation)
  24. {
  25. _poa = poa;
  26. _id = id;
  27. _servant = null;
  28. _cookieHolder = cookieHolder;
  29. _operation = operation;
  30. _preInvokeCalled = false;
  31. _postInvokeCalled = false;
  32. }
  33. //getters
  34. public POA poa() { return _poa;}
  35. public byte[] id() { return _id ;}
  36. public Servant getServant() { return _servant; }
  37. public CookieHolder getCookieHolder() { return _cookieHolder; }
  38. public String getOperation() { return _operation; }
  39. public boolean preInvokeCalled() { return _preInvokeCalled; }
  40. public boolean postInvokeCalled() { return _postInvokeCalled; }
  41. //setters
  42. public void setPreInvokeCalled() { _preInvokeCalled = true; }
  43. public void setPostInvokeCalled() { _postInvokeCalled = true; }
  44. public void setServant(Servant servant) { _servant = servant; }
  45. }