Class ReferenceManagerConfigurator.RMIORInterceptor

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.oa.rfm.ReferenceManagerConfigurator.RMIORInterceptor
All Implemented Interfaces:
Serializable, Object, IDLEntity, Interceptor, InterceptorOperations, IORInterceptor, IORInterceptor_3_0, IORInterceptor_3_0Operations, IORInterceptorOperations
Enclosing class:
ReferenceManagerConfigurator

private static class ReferenceManagerConfigurator.RMIORInterceptor extends LocalObject implements IORInterceptor_3_0
  • Field Details

  • Constructor Details

  • Method Details

    • name

      public String name()
      Description copied from interface: InterceptorOperations
      Returns the name of the interceptor.

      Each Interceptor may have a name that may be used administratively to order the lists of Interceptors. Only one Interceptor of a given name can be registered with the ORB for each Interceptor type. An Interceptor may be anonymous, i.e., have an empty string as the name attribute. Any number of anonymous Interceptors may be registered with the ORB.

      Specified by:
      name in interface InterceptorOperations
      Returns:
      the name of the interceptor.
    • destroy

      public void destroy()
      Description copied from interface: InterceptorOperations
      Provides an opportunity to destroy this interceptor. The destroy method is called during ORB.destroy. When an application calls ORB.destroy, the ORB:
      1. waits for all requests in progress to complete
      2. calls the Interceptor.destroy operation for each interceptor
      3. completes destruction of the ORB
      Method invocations from within Interceptor.destroy on object references for objects implemented on the ORB being destroyed result in undefined behavior. However, method invocations on objects implemented on an ORB other than the one being destroyed are permitted. (This means that the ORB being destroyed is still capable of acting as a client, but not as a server.)
      Specified by:
      destroy in interface InterceptorOperations
    • establish_components

      public void establish_components(IORInfo info)
      Description copied from interface: IORInterceptorOperations
      A server side ORB calls the establish_components operation on all registered IORInterceptor instances when it is assembling the list of components that will be included in the profile or profiles of an object reference. This operation is not necessarily called for each individual object reference. In the case of the POA, this operation is called each time POA::create_POA is called. In any case, establish_components is guaranteed to be called at least once for each distinct set of server policies.

      An implementation of establish_components must not throw exceptions. If it does, the ORB shall ignore the exception and proceed to call the next IOR Interceptor's establish_components operation.

      Specified by:
      establish_components in interface IORInterceptorOperations
      Parameters:
      info - The IORInfo instance used by the ORB service to query applicable policies and add components to be included in the generated IORs.
    • adapter_manager_state_changed

      public void adapter_manager_state_changed(int id, short state)
      Description copied from interface: IORInterceptor_3_0Operations
      Called whenever the state of an adapter manager changes. For the POA, that is the POAManager. If the state change is reported through adapter_manager_state_changed, it is not reported through adapter_state_changed.
      Specified by:
      adapter_manager_state_changed in interface IORInterceptor_3_0Operations
      Parameters:
      id - the adapter manager id of the adapter manager that changed state
      state - the new state of the adapter manager
    • adapter_state_changed

      public void adapter_state_changed(ObjectReferenceTemplate[] templates, short state)
      Description copied from interface: IORInterceptor_3_0Operations
      Called whenever the state of an object adapter changes, and the state change is not caused by an adapter manager. Such changes are reported to all registered IORInterceptor_3_0 instances.
      Specified by:
      adapter_state_changed in interface IORInterceptor_3_0Operations
      Parameters:
      templates - the sequence of ObjectReferenceTemplate instances on which this state change occurred.
      state - the new AdapterState shared by all of the templates.
    • components_established

      public void components_established(IORInfo info)
      Description copied from interface: IORInterceptor_3_0Operations
      The components_established method is invoked on all registered IORInterceptor_3_0 instances after establish_components has been invoked on all registered IORInterceptor instances. The adapter_template is available in info during this call. The current_factory may be get or set in info during this call.

      Any exception thrown from this method is handled by the Object Adapter that called this interceptor. In the case of the POA, an exception results in a OBJ_ADAPTER exception with an OMG standard minor code of 6.

      Specified by:
      components_established in interface IORInterceptor_3_0Operations
      Parameters:
      info - The IORInfo for the object adapter being created.