Class IORInfoImpl

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.interceptors.IORInfoImpl
All Implemented Interfaces:
IORInfoExt, Serializable, Object, IDLEntity, IORInfo, IORInfoOperations

public final class IORInfoImpl extends LocalObject implements IORInfo, IORInfoExt
IORInfoImpl is the implementation of the IORInfo class, as described in orbos/99-12-02, section 7.
See Also:
  • Field Details

  • Constructor Details

    • IORInfoImpl

      IORInfoImpl(ObjectAdapter adapter)
      Creates a new IORInfo implementation. This info object will establish tagged components with the template for the provided IOR Template.
  • Method Details

    • get_effective_policy

      public Policy get_effective_policy(int type)
      An ORB service implementation may determine what server side policy of a particular type is in effect for an IOR being constructed by calling the get_effective_policy operation. When the IOR being constructed is for an object implemented using a POA, all Policy objects passed to the PortableServer::POA::create_POA call that created that POA are accessible via get_effective_policy.

      If a policy for the given type is not known to the ORB, then this operation will raise INV_POLICY with a standard minor code of 2.

      Specified by:
      get_effective_policy in interface IORInfoOperations
      Parameters:
      type - The CORBA::PolicyType specifying the type of policy to return.
      Returns:
      The effective CORBA::Policy object of the requested type. If the given policy type is known, but no policy of that type is in effect, then this operation will return a nil object reference.
    • add_ior_component

      public void add_ior_component(TaggedComponent tagged_component)
      A portable ORB service implementation calls this method from its implementation of establish_components to add a tagged component to the set which will be included when constructing IORs. The components in this set will be included in all profiles.

      Any number of components may exist with the same component ID.

      Specified by:
      add_ior_component in interface IORInfoOperations
      Parameters:
      tagged_component - The IOP::TaggedComponent to add
    • add_ior_component_to_profile

      public void add_ior_component_to_profile(TaggedComponent tagged_component, int profile_id)
      A portable ORB service implementation calls this method from its implementation of establish_components to add a tagged component to the set which will be included when constructing IORs. The components in this set will be included in the specified profile.

      Any number of components may exist with the same component ID.

      If the given profile ID does not define a known profile or it is impossible to add components to thgat profile, BAD_PARAM is raised with a minor code of TBD_BP + 3.

      Specified by:
      add_ior_component_to_profile in interface IORInfoOperations
      Parameters:
      tagged_component - The IOP::TaggedComponent to add.
      profile_id - The IOP::ProfileId tof the profile to which this component will be added.
    • getServerPort

      public int getServerPort(String type) throws UnknownType
      Specified by:
      getServerPort in interface IORInfoExt
      Parameters:
      type - The type of the server port (see connection.ORBSocketFactory for discussion).
      Returns:
      The listen port number for that type.
      Throws:
      UnknownType - if no port of the given type is found.
    • getObjectAdapter

      public ObjectAdapter getObjectAdapter()
      Specified by:
      getObjectAdapter in interface IORInfoExt
    • manager_id

      public int manager_id()
      Description copied from interface: IORInfoOperations
      Return the adapter manager id of the object adapter that was just created and is running IOR interceptors.
      Specified by:
      manager_id in interface IORInfoOperations
      Returns:
      the manager ID
    • state

      public short state()
      Description copied from interface: IORInfoOperations
      Return the adapter state of the object adapter that was just created and is running IOR interceptors.
      Specified by:
      state in interface IORInfoOperations
      Returns:
      the state of the adapter
    • adapter_template

      public ObjectReferenceTemplate adapter_template()
      Description copied from interface: IORInfoOperations
      Return the object reference template of the object adapter that was just created and is running IOR interceptors.
      Specified by:
      adapter_template in interface IORInfoOperations
      Returns:
      the template
    • current_factory

      public ObjectReferenceFactory current_factory()
      Description copied from interface: IORInfoOperations
      On read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors. By default, this factory is the same as the value of the adapter_template attribute. The current_factory may also be set to another object reference template inside an IORInterceptor_3_0.
      Specified by:
      current_factory in interface IORInfoOperations
    • current_factory

      public void current_factory(ObjectReferenceFactory factory)
      Description copied from interface: IORInfoOperations
      On read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors. By default, this factory is the same as the value of the adapter_template attribute. The current_factory may also be set to another object reference template inside an IORInterceptor_3_0.
      Specified by:
      current_factory in interface IORInfoOperations
    • addIORComponentToProfileInternal

      private void addIORComponentToProfileInternal(TaggedComponent tagged_component, Iterator iterator)
      Internal utility method to add an IOR component to the set of profiles present in the iterator.
    • nullParam

      private void nullParam()
      Called when an invalid null parameter was passed. Throws a BAD_PARAM with a minor code of 1
    • checkState

      private void checkState(int expectedState)
    • checkState

      private void checkState(int expectedState1, int expectedState2)
    • makeStateEstablished

      void makeStateEstablished()
    • makeStateDone

      void makeStateDone()