Jump to: navigation, search

Difference between revisions of "ECF Connection Creation and Management"

(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-...)
 
(IContainer instance creation)
Line 13: Line 13:
 
<pre>
 
<pre>
 
IContainerFactory factory = ContainerFactory.getDefault();
 
IContainerFactory factory = ContainerFactory.getDefault();
<pre>
+
</pre>
 
or
 
or
 
<pre>
 
<pre>
Line 24: Line 24:
  
 
By way of introduction, here's a snippet that creat
 
By way of introduction, here's a snippet that creat
 +
 
==API Reference==
 
==API Reference==
  
 
[[ECF_API_Docs#ECF_Core | Core API - bundle docs]]
 
[[ECF_API_Docs#ECF_Core | Core API - bundle docs]]
 
[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/tests/org.eclipse.ecf.tests/?root=Technology_Project Core API - test code]]
 
[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/tests/org.eclipse.ecf.tests/?root=Technology_Project Core API - test code]]

Revision as of 13:24, 23 September 2008

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();

or

IContainerFactory factory = (IContainerFactory) factoryServiceTracker.getService();



By way of introduction, here's a snippet that creat

API Reference

Core API - bundle docs Core API - test code]