org.omg.PortableInterceptor.ObjectReferenceTemplate Java Examples

The following examples show how to use org.omg.PortableInterceptor.ObjectReferenceTemplate. 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: IORInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #2
Source File: POAImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #3
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 #4
Source File: POAImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #5
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 #6
Source File: IORInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #7
Source File: POAImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #8
Source File: IORInfoImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #9
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 #10
Source File: IORInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #11
Source File: IORInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #12
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 #13
Source File: POAImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #14
Source File: IORInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #15
Source File: POAImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #16
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 #17
Source File: POAImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #18
Source File: POAImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #19
Source File: POAImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #20
Source File: IORInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #21
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 #22
Source File: POAImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public void run()
{
    Set destroyedPOATemplates = new HashSet() ;

    performDestroy( thePoa, destroyedPOATemplates );

    Iterator iter = destroyedPOATemplates.iterator() ;
    ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[
        destroyedPOATemplates.size() ] ;
    int index = 0 ;
    while (iter.hasNext())
        orts[ index++ ] = (ObjectReferenceTemplate)iter.next();

    thePoa.getORB().getPIHandler().adapterStateChanged( orts,
        NON_EXISTENT.value ) ;
}
 
Example #23
Source File: IORInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReferenceTemplate adapter_template()
{
    checkState( STATE_ESTABLISHED) ;

    // At this point, the iortemp must contain only a single
    // IIOPProfileTemplate.  This is a restriction of our
    // implementation.  Also, note the the ObjectReferenceTemplate
    // is called when a certain POA is created in a certain ORB
    // in a certain server, so the server_id, orb_id, and
    // poa_id operations must be well-defined no matter what
    // kind of implementation is used: e.g., if a POA creates
    // IORs with multiple profiles, they must still all agree
    // about this information.  Thus, we are justified in
    // extracting the single IIOPProfileTemplate to create
    // an ObjectReferenceTemplate here.

    return adapter.getAdapterTemplate() ;
}
 
Example #24
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 #25
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 #26
Source File: PIHandlerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void adapterStateChanged( ObjectReferenceTemplate[]
    templates, short newState )
{
    if (!hasIORInterceptors)
        return ;

    interceptorInvoker.adapterStateChanged( templates, newState ) ;
}
 
Example #27
Source File: IORFactories.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static IORFactory getIORFactory( ObjectReferenceTemplate ort )
{
    if (ort instanceof ObjectReferenceTemplateImpl) {
        ObjectReferenceTemplateImpl orti =
            (ObjectReferenceTemplateImpl)ort ;
        return orti.getIORFactory() ;
    }

    throw new BAD_PARAM() ;
}
 
Example #28
Source File: PIHandlerImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void adapterStateChanged( ObjectReferenceTemplate[]
    templates, short newState )
{
    if (!hasIORInterceptors)
        return ;

    interceptorInvoker.adapterStateChanged( templates, newState ) ;
}
 
Example #29
Source File: PIHandlerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void adapterStateChanged( ObjectReferenceTemplate[]
    templates, short newState )
{
    if (!hasIORInterceptors)
        return ;

    interceptorInvoker.adapterStateChanged( templates, newState ) ;
}
 
Example #30
Source File: IORFactories.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public static IORFactory getIORFactory( ObjectReferenceTemplate ort )
{
    if (ort instanceof ObjectReferenceTemplateImpl) {
        ObjectReferenceTemplateImpl orti =
            (ObjectReferenceTemplateImpl)ort ;
        return orti.getIORFactory() ;
    }

    throw new BAD_PARAM() ;
}