Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
ECF Connection Creation and Management
Revision as of 14:24, 23 September 2008 by Unnamed Poltroon (Talk) (New page: ==Introduction== ECF's core API provides support for connection management...i.e. connection creation, connect, disconnect, entry point access to protocol-specific capabilities, platform-...)
Introduction
ECF's core API provides support for connection management...i.e. connection creation, connect, disconnect, entry point access to protocol-specific capabilities, platform-wide connection management, etc.
In ECF, connections are represented as implementations of the IContainer interface.
IContainer instance creation
IContainer instances are created via instances of IConnectionFactory.
IConnectionFactory instances can be accessed as an OSGi service, or statically:
IContainerFactory factory = ContainerFactory.getDefault(); <pre> or <pre> IContainerFactory factory = (IContainerFactory) factoryServiceTracker.getService();
By way of introduction, here's a snippet that creat