Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type unsigned long ConnectionId
- typedef sequence<string> NameList
- struct FacetDescription{
- string name;
- string interface_name;
- Object facet_ref;
- }
- typedef sequence<FacetDescriptions> FacetDescriptions;
- struct ConnectionDescription{
- ConnectionId id;
- Object objref;
- }
- typedef sequence<ConnectionDescriptions> ConnectionDescriptions;
- struct ReceptacleDescription{
- string name;
- string interface_name;
- boolean is_multiplex;
- ConnectionDescriptions connections;
- }
- typedef sequence<ReceptacleDescription> ReceptacleDescriptions;
- struct ComponentId{
- string name;
- octect major_version;
- octect minor_version;
- octect patch_version;
- }
- typedef sequence<ComponentId> ComponentIdSeq;
- -------------------------------------------------------
- IComponent
- void startup() raises(StartupFailed)
- void shutdown() raises(ShutdownFailed)
- Object getFacet(in string facet_interface)
- Object getFacetByName(in string facet)
- Object getComponentId()
- IComponentSeq : O Conjunto de interfaces de componentes
- -------------------------------------------------------
- IMetaInterface
- FacetDescriptions getFacets()
- FacetDescriptions getFacetsByName(in NameList names) raises(InvalidName)
- ReceptacleDescriptions getReceptacles()
- ReceptacleDescriptions getReceptaclesByName(in NameList names) raises(InvalidName)
- -------------------------------------------------------
- IReceptacles
- ConnectionId connect(in string receptacle, in Object obj) raises
- (InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit)
- void disconnect(in ConnectionId id) raises (InvalidConnection, NoConnection)
- ConnectionDescriptions getConenctions(in string receptacle) raises(InvalidName)
- ====================================================================================
- HelloServant helloImpl = (HelloServant) context.getFacets().get(FACET_HELLO);
- helloImpl.setName("World, I'm the server written in Java!");
- //Saving the CORBA Reference of the Hello facet
- /**
- CounterImpl c_impl = new CounterImpl();
- Counter c = c_impl._this(orb);
- // byte[] servantId = rootPOA.activate_object(c_impl);
- // org.omg.CORBA.Object c = rootPOA.id_to_reference(servantId);
- // --
- // org.omg.CORBA.Object obj = null
- // obj = orb.string_to_object(ref)
- // Counter c = CounterHelper.narrow(obj)
- String ref = orb.object_to_string(c);
- */
- String ior = orb.object_to_string( IComponentHelper.narrow(context.getFacetDescs().get(FACET_ICOMPONENT).facet_ref) );
Add Comment
Please, Sign In to add comment