Package org.omg.PortableServer.POAPackage

Examples of org.omg.PortableServer.POAPackage.WrongPolicy


        if ((!isUseDefaultServant())            &&
            (!isRetain() || !isUniqueId())      &&
            (!isRetain() || !isImplicitActivation()))
        {
            throw new WrongPolicy();
        }

        byte[] objectId = null;

        if (isRetain())
View Full Code Here


        if ( (!isRetain() || !isUniqueId()) &&
             (!isRetain() || !isImplicitActivation()) &&
             !isInInvocationContext )
        {
            throw new WrongPolicy();
        }

        byte[] objectId = null;

        if (isInInvocationContext)
View Full Code Here

    {
        checkDestructionApparent();

        if (!isUseDefaultServant())
        {
            throw new WrongPolicy();
        }

        defaultServant = _defaultServant;

        if (defaultServant != null)
View Full Code Here

    {
        checkDestructionApparent ();

        if (!isUseServantManager())
        {
            throw new WrongPolicy();
        }

        if (servantManager != null)
        {
            throw new org.omg.CORBA.BAD_INV_ORDER();
        }

        /* not spec. */
        if( isRetain() &&
            !(servant_manager instanceof org.omg.PortableServer.ServantActivator))
        {
            throw new WrongPolicy();
        }

        if (!isRetain() &&
            !(servant_manager instanceof org.omg.PortableServer.ServantLocator))
        {
            throw new WrongPolicy();
        }

        servantManager = servant_manager;
    }
View Full Code Here

    public byte[] servantToId( Servant servant ) throws ServantNotActive, WrongPolicy
    {
        // XXX needs to handle call from an invocation on this POA

        if (!isUnique && !isImplicit)
            throw new WrongPolicy();

        if (isUnique) {
            ActiveObjectMap.Key key = activeObjectMap.getKey(servant);
            if (key != null)
                return key.id ;
View Full Code Here

        checkDestructionApparent ();

        if (!isRetain() || !isSystemId())
        {
            throw new WrongPolicy();
        }

        byte[] objectId = generateObjectId();

        try
View Full Code Here

            throw new org.omg.CORBA.BAD_PARAM( "Cannot activate_object_with_id with null ID." );
        }

        if ( !isRetain() )
        {
            throw new WrongPolicy();
        }

        if ( isSystemId() && !previouslyGeneratedObjectId(oid) )
        {
            if (logger.isWarnEnabled())
View Full Code Here

        checkDestructionApparent();

        if (!isSystemId())
        {
            throw new WrongPolicy();
        }

        return getReference (generateObjectId (), intf_rep_id, false);
    }
View Full Code Here

    {
        checkIsConfigured();

        if (!isRetain())
        {
            throw new WrongPolicy();
        }

        ((GOA)this).clearGroupRegistration(oid);

        ByteArrayKey oidbak = new ByteArrayKey (oid);
View Full Code Here

        checkDestructionApparent();

        if (!isUseDefaultServant())
        {
            throw new WrongPolicy();
        }

        if (defaultServant == null)
        {
            throw new NoServant();
View Full Code Here

TOP

Related Classes of org.omg.PortableServer.POAPackage.WrongPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.