org.omg.PortableInterceptor.IORInterceptor Java Examples

The following examples show how to use org.omg.PortableInterceptor.IORInterceptor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InterceptorInvoker.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #2
Source File: InterceptorInvoker.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #3
Source File: InterceptorInvoker.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #4
Source File: InterceptorInvoker.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #5
Source File: InterceptorInvoker.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #6
Source File: InterceptorInvoker.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #7
Source File: InterceptorInvoker.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #8
Source File: InterceptorInvoker.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #9
Source File: InterceptorInvoker.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #10
Source File: InterceptorInvoker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #11
Source File: InterceptorInvoker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #12
Source File: InterceptorInvoker.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #13
Source File: InterceptorInvoker.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #14
Source File: InterceptorInvoker.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #15
Source File: InterceptorInvoker.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #16
Source File: InterceptorInvoker.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #17
Source File: InterceptorInvoker.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #18
Source File: InterceptorInvoker.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
void adapterManagerStateChanged( int managerId, short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_manager_state_changed( managerId,
                        newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #19
Source File: InterceptorInvoker.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #20
Source File: InterceptorInvoker.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
void adapterStateChanged( ObjectReferenceTemplate[] templates,
    short newState )
{
    if (enabled) {
        IORInterceptor[] interceptors =
            (IORInterceptor[])interceptorList.getInterceptors(
            InterceptorList.INTERCEPTOR_TYPE_IOR );
        int size = interceptors.length;

        for( int i = (size - 1); i >= 0; i-- ) {
            try {
                IORInterceptor interceptor = interceptors[i];
                if (interceptor instanceof IORInterceptor_3_0) {
                    IORInterceptor_3_0 interceptor30 = (IORInterceptor_3_0)interceptor ;
                    interceptor30.adapter_state_changed( templates, newState );
                }
            } catch (Exception exc) {
                // No-op: ignore exception in this case
            }
        }
    }
}
 
Example #21
Source File: ORBInitInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void add_ior_interceptor_with_policy (
    IORInterceptor interceptor, Policy[] policies )
    throws DuplicateName, PolicyError
{
    // XXX ignore policies for now
    add_ior_interceptor( interceptor ) ;
}
 
Example #22
Source File: ORBInitInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This operation is used to add an IOR Interceptor to
 * the list of IOR Interceptors.
 * <p>
 * If an IOR Interceptor has already been registered
 * with this Interceptor's name, DuplicateName is raised.
 */
public void add_ior_interceptor (
    IORInterceptor interceptor )
    throws DuplicateName
{
    checkStage();
    if( interceptor == null ) nullParam();

    orb.getPIHandler().register_interceptor( interceptor,
        InterceptorList.INTERCEPTOR_TYPE_IOR );
}
 
Example #23
Source File: ORBInitInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void add_ior_interceptor_with_policy (
    IORInterceptor interceptor, Policy[] policies )
    throws DuplicateName, PolicyError
{
    // XXX ignore policies for now
    add_ior_interceptor( interceptor ) ;
}
 
Example #24
Source File: ORBInitInfoImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public void add_ior_interceptor_with_policy (
    IORInterceptor interceptor, Policy[] policies )
    throws DuplicateName, PolicyError
{
    // XXX ignore policies for now
    add_ior_interceptor( interceptor ) ;
}
 
Example #25
Source File: ORBInitInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This operation is used to add an IOR Interceptor to
 * the list of IOR Interceptors.
 * <p>
 * If an IOR Interceptor has already been registered
 * with this Interceptor's name, DuplicateName is raised.
 */
public void add_ior_interceptor (
    IORInterceptor interceptor )
    throws DuplicateName
{
    checkStage();
    if( interceptor == null ) nullParam();

    orb.getPIHandler().register_interceptor( interceptor,
        InterceptorList.INTERCEPTOR_TYPE_IOR );
}
 
Example #26
Source File: ORBInitInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void add_ior_interceptor_with_policy (
    IORInterceptor interceptor, Policy[] policies )
    throws DuplicateName, PolicyError
{
    // XXX ignore policies for now
    add_ior_interceptor( interceptor ) ;
}
 
Example #27
Source File: ORBInitInfoImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * This operation is used to add an IOR Interceptor to
 * the list of IOR Interceptors.
 * <p>
 * If an IOR Interceptor has already been registered
 * with this Interceptor's name, DuplicateName is raised.
 */
public void add_ior_interceptor (
    IORInterceptor interceptor )
    throws DuplicateName
{
    checkStage();
    if( interceptor == null ) nullParam();

    orb.getPIHandler().register_interceptor( interceptor,
        InterceptorList.INTERCEPTOR_TYPE_IOR );
}
 
Example #28
Source File: ORBInitInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This operation is used to add an IOR Interceptor to
 * the list of IOR Interceptors.
 * <p>
 * If an IOR Interceptor has already been registered
 * with this Interceptor's name, DuplicateName is raised.
 */
public void add_ior_interceptor (
    IORInterceptor interceptor )
    throws DuplicateName
{
    checkStage();
    if( interceptor == null ) nullParam();

    orb.getPIHandler().register_interceptor( interceptor,
        InterceptorList.INTERCEPTOR_TYPE_IOR );
}
 
Example #29
Source File: ORBInitInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void add_ior_interceptor_with_policy (
    IORInterceptor interceptor, Policy[] policies )
    throws DuplicateName, PolicyError
{
    // XXX ignore policies for now
    add_ior_interceptor( interceptor ) ;
}
 
Example #30
Source File: ORBInitInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void add_ior_interceptor_with_policy (
    IORInterceptor interceptor, Policy[] policies )
    throws DuplicateName, PolicyError
{
    // XXX ignore policies for now
    add_ior_interceptor( interceptor ) ;
}