# container

###### Identifier:

org.eclipse.ecf.container

###### Since:

ECF core bundle v 3.1.0.

###### Description:

This extension point allows extensions to specify the creation of a container instance of a given type.

###### Configuration Markup:

<!ELEMENT extension (container+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT container (parameter+)?>

<!ATTLIST container

factoryName CDATA #REQUIRED

containerId CDATA #IMPLIED>

The container extension point. Extensions may define new containers created upon ECF core initialization.

- factoryName - The required containerFactoryName (e.g. ecf.generic.client or ecf.r_osgi.peer) that defines the type of container to create.
- containerId - Optional containerId that defines the id for the new container instance.

<!ELEMENT parameter EMPTY>

<!ATTLIST parameter

name CDATA #REQUIRED

value CDATA #REQUIRED>

Parameter for container instance creation. The name value pairs defined by the parameter element name and value attributes are added to a Map that is then passed to the container factory instance creation.

- name - The name for the container parameter.
- value - The value for the container parameter.

###### Examples:

       <extension
             point="org.eclipse.ecf.container">
          <container
                containerId="foo1"
                factoryName="ecf.generic.client">
             <parameter
                   name="name1"
                   value="value1">
             </parameter>
             <parameter
                   name="name2"
                   value="value2">
             </parameter>
          </container>
          <container
                containerId="adfasdf"
                factoryName="bogus.factory.name">
          </container>
          <container
                containerId="ecftcp://localhost:32111/server"
                factoryName="ecf.generic.server">
          </container>
          <container
                factoryName="ecf.generic.client">
          </container>
       </extension>

###### API Information:

No API available.

###### Supplied Implementation:

The ECF core v3.1.0 bundle supplies the implementation of this extension point.

Copyright (c) 2009 Composent, Inc. and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0