com.sun.corba.se.impl.ior.POAObjectKeyTemplate Java Examples

The following examples show how to use com.sun.corba.se.impl.ior.POAObjectKeyTemplate. 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: POAImpl.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #2
Source File: POAImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #3
Source File: POAImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #4
Source File: POAImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #5
Source File: POAImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #6
Source File: POAImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #7
Source File: POAImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #8
Source File: POAImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #9
Source File: POAImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}
 
Example #10
Source File: POAImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private void initialize( POAManagerImpl manager, Policies policies )
{
    if (debug) {
        ORBUtility.dprint( this, "Initializing poa " + this +
            " with POAManager=" + manager + " policies=" + policies ) ;
    }

    this.manager = manager;
    manager.addPOA(this);

    mediator = POAPolicyMediatorFactory.create( policies, this ) ;

    // Construct the object key template
    int serverid = mediator.getServerId() ;
    int scid = mediator.getScid() ;
    String orbId = getORB().getORBData().getORBId();

    ObjectKeyTemplate oktemp = new POAObjectKeyTemplate( getORB(),
        scid, serverid, orbId, poaId ) ;

    if (debug) {
        ORBUtility.dprint( this, "Initializing poa: oktemp=" + oktemp ) ;
    }

    // Note that parent == null iff this is the root POA.
    // This was used to avoid executing interceptors on the RootPOA.
    // That is no longer necessary.
    boolean objectAdapterCreated = true; // parent != null ;

    // XXX extract codebase from policies and pass into initializeTemplate
    // after the codebase policy change is finalized.
    initializeTemplate( oktemp, objectAdapterCreated,
                        policies,
                        null, // codebase
                        null, // manager id
                        oktemp.getObjectAdapterId()
                        ) ;

    if (state == STATE_START)
        state = STATE_RUN ;
    else if (state == STATE_INIT)
        state = STATE_INIT_DONE ;
    else
        throw lifecycleWrapper().illegalPoaStateTrans() ;
}