Package org.omg.CORBA

Examples of org.omg.CORBA.InterfaceDef


/* 180 */       this.baseValue = "IDL:omg.org/CORBA/ValueBase:1.0";
/*     */     }
/*     */
/* 183 */     this.supported_interfaces_ref = new InterfaceDef[this.supported_interfaces.length];
/* 184 */     for (int i = 0; i < this.supported_interfaces.length; i++) {
/* 185 */       InterfaceDef iDef = InterfaceDefHelper.narrow(this.repository.lookup_id(this.supported_interfaces[i]));
/*     */
/* 187 */       if (iDef == null) {
/* 188 */         throw new IRConstructionException("ValueDef \"" + id() + "\" unable to resolve " + "reference to implemented interface \"" + this.supported_interfaces[i] + "\".");
/*     */       }
/*     */
View Full Code Here


/* 330 */     secPolicy.insert_Value(iorSecurityConfigMetaData);
/* 331 */     Policy csiv2Policy = this.orb.create_policy(-2023406815, secPolicy);
/*     */
/* 333 */     Policy[] policies = { codebasePolicy, csiv2Policy };
/*     */
/* 335 */     InterfaceDef interfaceDef = null;
/* 336 */     if (this.iri != null)
/*     */     {
/* 338 */       Repository ir = this.iri.getReference();
/* 339 */       interfaceDef = InterfaceDefHelper.narrow(ir.lookup_id(this.beanRepositoryIds[0]));
/*     */     }
View Full Code Here

    {
        // we're registering a BasicServer in the client ORB/POA here. the client ORB is properly configured
        // so that it knows how to contact the running IR.
        BasicServer server = BasicServerHelper.narrow(setup.clientServerSetup.getClientRootPOA().servant_to_reference(new BasicServerImpl()));

        InterfaceDef interfaceDef = InterfaceDefHelper.narrow(server._get_interface_def());

        assertNotNull(interfaceDef);
    }
View Full Code Here

        }
    }

    private FullInterfaceDescription getInterfaceDescription()
    {
        InterfaceDef _interfaceDef = InterfaceDefHelper.narrow(repository_
                .lookup_id(supportedInterface_));

        return _interfaceDef.describe_interface();
    }
View Full Code Here

    public Interface[] getSuperInterfaces()
    {
    if (superInterfaces==null)
        {
            // superInterfaces in unserem dazugehörigen Field speichern
            InterfaceDef interfaceDef = InterfaceDefHelper.narrow(irObject);
            InterfaceDef[] baseInterfaces = interfaceDef.base_interfaces(); // base interfaces aus IR holen
            this.superInterfaces = new IRInterface[baseInterfaces.length];
            for (int i=0; i<baseInterfaces.length; i++)
            {
                // für alle base interfaces die zugehörige TypeSystemNode holen
                IRInterface superInterface = (IRInterface)RemoteTypeSystem.createTypeSystemNode(baseInterfaces[i]);
View Full Code Here

    public static void main(String args[]) {
        try {
            Repository rep    = RepositoryHelper.narrow( orb.resolve_initial_references("InterfaceRepository"));
            PrimitiveDef prim  = rep.get_primitive(PrimitiveKind.pk_short);

            InterfaceDef intf = InterfaceDefHelper.narrow( prim._get_interface_def());
            ObjectRepresentant objr = ObjectRepresentantFactory.create(prim,RemoteTypeSystem.createTypeSystemNode(intf),null);
            ModelBuilder.getSingleton().buildTreeModelAsync(objr);
        }
        catch (Exception e) {
            e.printStackTrace();
View Full Code Here

            baseValue = "IDL:omg.org/CORBA/ValueBase:1.0"; // TODO: is this right?

        // Resolve supported interfaces
        supported_interfaces_ref = new InterfaceDef[supported_interfaces.length];
        for (int i = 0; i < supported_interfaces.length; ++i) {
            InterfaceDef iDef = InterfaceDefHelper.narrow(
                    repository.lookup_id(supported_interfaces[i]));
            if (iDef == null)
                throw new IRConstructionException(
                        "ValueDef \"" + id() + "\" unable to resolve " +
                                "reference to implemented interface \"" +
View Full Code Here

TOP

Related Classes of org.omg.CORBA.InterfaceDef

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.