Creating an Object Adapter
You create an object adapter by calling createObjectAdapter on a communicator:
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter( "GreeterAdapter");Ice.ObjectAdapter adapter = communicator.createObjectAdapter("GreeterAdapter");ObjectAdapter adapter = communicator.createObjectAdapter("GreeterAdapter");const adapter = await communicator.createObjectAdapter("GreeterAdapter");adapter = communicator.createObjectAdapter("GreeterAdapter")let adapter = try communicator.createObjectAdapter("GreeterAdapter")An object adapter with a non-empty name reads its configuration from the properties prefixed with this name, such as name.Endpoints, the endpoints on which it listens. It requires at least one of these properties. An object adapter with an empty name reads no properties.
An object adapter with a non-empty name reads its configuration from the properties prefixed with this name, such as name.Router, the proxy of a router. It requires at least one of these properties. An object adapter with an empty name reads no properties.
createObjectAdapterWithEndpoints creates an object adapter and sets its endpoints:
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints( "GreeterAdapter", "tcp -p 4061");Ice.ObjectAdapter adapter = communicator.createObjectAdapterWithEndpoints( "GreeterAdapter", "tcp -p 4061");ObjectAdapter adapter = communicator.createObjectAdapterWithEndpoints( "GreeterAdapter", "tcp -p 4061");adapter = communicator.createObjectAdapterWithEndpoints( "GreeterAdapter", "tcp -p 4061")let adapter = try communicator.createObjectAdapterWithEndpoints( name: "GreeterAdapter", endpoints: "tcp -p 4061")An object adapter without endpoints dispatches only collocated invocations and the requests it receives over bidirectional connections.