Examples of ObjectImpl


Examples of org.omg.CORBA.portable.ObjectImpl

      if (object instanceof ObjectImpl)
      {
         try
         {
            // Check we are still connected
            ObjectImpl objectImpl = (ObjectImpl) object;
            objectImpl._get_delegate();
         }
         catch (BAD_OPERATION e)
         {
            try
            {
View Full Code Here

Examples of org.omg.CORBA.portable.ObjectImpl

            POA rootPOA = setup.getRootPOA();
            POA testPOA = rootPOA.create_POA("MyPOA", rootPOA.the_POAManager(), new Policy[] {rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID)});
            byte[] key = new byte[] {1, 2, 3, 4};
            org.omg.CORBA.Object object = testPOA.create_reference_with_id(key, BasicServerHelper.id());

            ObjectImpl objectImpl = (ObjectImpl) object;
            Delegate delegate = (Delegate) objectImpl._get_delegate();

            ParsedIOR parsedIOR = delegate.getParsedIOR();

            StringWriter out = new StringWriter();
            final PrintWriter printWriter = new PrintWriter(out);
View Full Code Here

Examples of org.omg.CORBA.portable.ObjectImpl

    public void send_request( ClientRequestInfo ri )
        throws ForwardRequest
    {
        byte []result = null;

        ObjectImpl o = (ObjectImpl)ri.effective_target();

        // This part is proprietary code to marshal the service context data
        CDROutputStream os = new CDROutputStream ();
        if (o._is_local())
        {
            os.write_boolean (true);
        }
        else
        {
View Full Code Here

Examples of org.omg.CORBA.portable.ObjectImpl

/*     */   {
/* 106 */     if ((object instanceof ObjectImpl))
/*     */     {
/*     */       try
/*     */       {
/* 111 */         ObjectImpl objectImpl = (ObjectImpl)object;
/* 112 */         objectImpl._get_delegate();
/*     */       }
/*     */       catch (BAD_OPERATION e)
/*     */       {
/*     */         try
/*     */         {
View Full Code Here

Examples of org.omg.CORBA.portable.ObjectImpl

        POA testPOA = rootPOA.create_POA("MyPOA", rootPOA.the_POAManager(), new Policy[] {rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID)});
        byte[] key = new byte[] {1, 2, 3, 4};
        org.omg.CORBA.Object object = testPOA.create_reference_with_id(key, BasicServerHelper.id());

        ObjectImpl objectImpl = (ObjectImpl) object;
        Delegate delegate = (Delegate) objectImpl._get_delegate();

        ParsedIOR parsedIOR = delegate.getParsedIOR();

        StringWriter out = new StringWriter();
        final PrintWriter printWriter = new PrintWriter(out);
View Full Code Here

Examples of org.omg.CORBA.portable.ObjectImpl

        // check policy
        SASPolicyValues sasValues = null;
        try
        {
            ObjectImpl oi =
                (ObjectImpl)ri.target();
            org.jacorb.orb.Delegate d =
                (org.jacorb.orb.Delegate)oi._get_delegate();
            SASPolicy policy =
                (SASPolicy)d.getPOA().getPolicy(SAS_POLICY_TYPE.value);
            if (policy != null)
                sasValues = policy.value();
        }
        catch (BAD_PARAM e)
        {
            if (logger.isDebugEnabled())
                logger.debug("No SAS Policy for "+ri.operation());
        }
        catch (Exception e)
        {
            if (logger.isWarnEnabled())
                logger.warn("Error fetching SAS policy for "+
                            ri.operation()+": "+e);
            throw new org.omg.CORBA.NO_PERMISSION("Error fetching SAS policy: "+e,
                                                  MinorCodes.SAS_TSS_FAILURE,
                                                  CompletionStatus.COMPLETED_NO);
        }
        if (sasValues == null)
            return;
        if (sasValues.targetRequires == 0 && sasValues.targetSupports == 0)
            return;

        ATLASPolicyValues atlasValues = null;
        try
        {
            ObjectImpl oi = (ObjectImpl)ri.target();
            org.jacorb.orb.Delegate d = (org.jacorb.orb.Delegate)oi._get_delegate();
            ATLASPolicy policy = (ATLASPolicy)d.getPOA().getPolicy(ATLAS_POLICY_TYPE.value);
            if (policy != null)
                atlasValues = policy.value();
        }
        catch (BAD_PARAM e)
View Full Code Here

Examples of org.omg.CORBA.portable.ObjectImpl

    public void send_request( ClientRequestInfo ri )
        throws ForwardRequest
    {
        byte []result = null;

        ObjectImpl o = (ObjectImpl)ri.effective_target();

        // This part is proprietary code to marshal the service context data
        final CDROutputStream os = (CDROutputStream) orb.create_output_stream();
        if (o._is_local())
        {
            os.write_boolean (true);
        }
        else
        {
View Full Code Here

Examples of org.omg.CORBA_2_3.portable.ObjectImpl

    }

    public final org.omg.CORBA.Object read_Object() {
        InternalIOR ior = InternalIOR.read(__orb(), this);
        ClientDelegate del = new ClientDelegate(ior);
        ObjectImpl result = new PlainObject();
        result._set_delegate(del);
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.