Package org.jacorb.orb

Examples of org.jacorb.orb.Delegate


            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);
            PrintIOR.printIOR(parsedIOR, printWriter);
            printWriter.close();
View Full Code Here


        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);
        PrintIOR.printIOR(orb, parsedIOR, printWriter);
        printWriter.close();
View Full Code Here

            }
        }

        // This will fail to compile if public accessor API has been accidentally
        // removed (!)
        Delegate d = ((ClientRequestInfoImpl) ri).getDelegate();
        assertTrue (d != null);
    }
View Full Code Here

    {
        PingReceiver pr = PingReceiverHelper.narrow(server);
        pr.ping ();

        // Now the test...
        Delegate d = (Delegate)((org.omg.CORBA.portable.ObjectImpl)pr)._get_delegate();
        Field fields[] = Delegate.class.getDeclaredFields();
        Set<ReplyPlaceholder> pendingReplies = null;
        ConcurrentHashMap<org.omg.ETF.Profile, ReplyGroup> groups = null;

        for (int i = 0; i < fields.length; ++i)
View Full Code Here

        Any bounced = server.bounce_any(any);

        AnyServer referenceOffTheNet = AnyServerHelper.extract(bounced);

        Delegate delegate = (Delegate) ((org.omg.CORBA.portable.ObjectImpl)referenceOffTheNet)._get_delegate();

        Field parsedIOR = delegate.getClass().getDeclaredField("_pior");

        parsedIOR.setAccessible(true);

        assertNull("references received via the net should not be initialized fully if not used", parsedIOR.get(delegate));
View Full Code Here

        {
            timeout = true;

            Field fconnmgr = Delegate.class.getDeclaredField("conn_mg");
            fconnmgr.setAccessible(true);
            Delegate d = (Delegate) ((org.omg.CORBA.portable.ObjectImpl)server)._get_delegate();
            ClientConnectionManager ccm = (ClientConnectionManager) fconnmgr.get(d);
            Field connections = ClientConnectionManager.class.getDeclaredField("connections");
            connections.setAccessible(true);
            @SuppressWarnings("unchecked")
            HashMap<Profile, ClientConnection> c = (HashMap<Profile, ClientConnection>) connections.get(ccm);
View Full Code Here

        request.invoke();

        Field fconnmgr = Delegate.class.getDeclaredField("conn_mg");
        fconnmgr.setAccessible(true);
        Delegate d = (Delegate) ((org.omg.CORBA.portable.ObjectImpl)server)._get_delegate();
        ClientConnectionManager ccm = (ClientConnectionManager) fconnmgr.get(d);
        Field connections = ClientConnectionManager.class.getDeclaredField("connections");
        connections.setAccessible(true);
        @SuppressWarnings("unchecked")
        HashMap<Profile, ClientConnection> c = (HashMap<Profile, ClientConnection>) connections.get(ccm);
View Full Code Here

        }
        catch (Throwable e)
        {
            Field fconnmgr = Delegate.class.getDeclaredField("conn_mg");
            fconnmgr.setAccessible(true);
            Delegate d = (Delegate) ((org.omg.CORBA.portable.ObjectImpl)server1)._get_delegate();
            ClientConnectionManager ccm = (ClientConnectionManager) fconnmgr.get(d);
            Field connections = ClientConnectionManager.class.getDeclaredField("connections");
            connections.setAccessible(true);
            @SuppressWarnings("unchecked")
            HashMap<Profile, ClientConnection> c = (HashMap<Profile, ClientConnection>) connections.get(ccm);
View Full Code Here

        request.invoke();

        Field fconnmgr = Delegate.class.getDeclaredField("conn_mg");
        fconnmgr.setAccessible(true);
        Delegate d = (Delegate) ((org.omg.CORBA.portable.ObjectImpl)server)._get_delegate();
        ClientConnectionManager ccm = (ClientConnectionManager) fconnmgr.get(d);
        Field connections = ClientConnectionManager.class.getDeclaredField("connections");
        connections.setAccessible(true);
        @SuppressWarnings("unchecked")
        HashMap<Profile, ClientConnection> c = (HashMap<Profile, ClientConnection>) connections.get(ccm);
View Full Code Here

                     buffer), request.getConnection ());
            try
            {
               byte[] oid = members[i];
               org.omg.CORBA.Object member = id_to_reference (oid);
               Delegate delegate = (Delegate)((ObjectImpl)member)._get_delegate ();
               requestClone.setObjectKey (delegate.getObjectKey ());
               _invoke (requestClone);
            }
            catch (WrongAdapter ex)
            {
               logger.error ("Caught exception processing group request", ex);
View Full Code Here

TOP

Related Classes of org.jacorb.orb.Delegate

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.