Ice Reference Documentation | ||
---|---|---|
<<< Previous | Slice Documentation | Next >>> |
local interface |
A factory for objects. Object factories are used in several places, for example, when receiving "objects by value" and when ::Freeze restores a persistent object. Object factories must be implemented by the application writer, and registered with the communicator.
Object create(string type); |
Create a new object for a given object type. The type is the absolute Slice type name, i.e., the name relative to the unnamed top-level Slice module. For example, the absolute Slice type name for interfaces of type Bar in the module Foo is ::Foo::Bar.
![]() | The leading "::" is required. |
The object type.
The object created for the given type, or nil if the factory is unable to create the object.
void destroy(); |
Called when the factory is removed from the communicator, or if the communicator is destroyed.
<<< Previous | Home | Next >>> |
Ice::ObjectAdapterIdInUseException | Up | Ice::ObjectNotExistException |