Develop > Presentation layer > Customize IBM Sales Center > Controls > Control factories
Declare a control factory
A control factory is responsible for constructing instances of a configured control. The extension definition requires a controlType. This type will be used to map control declarations to the appropriate control factory. The IBM Sales Center will include control factories for all of the control types used to construct the IBM Sales Center user interface. These control types can be reused by a developer who is customizing the IBM Sales Center or he may define his own control factories.
Procedure
- Create a new plug-in to contain the customizations.
- In the plug-in's plugin.xml, use the com.ibm.commerce.telesales.widgets.controlFactories extension point to declare the control factory. For example:
<extension point="com.ibm.commerce.telesales.widgets.controlFactories"> <controlFactory id="com.ibm.commerce.telesales.widgets.textControlFactory" factoryClass="com.ibm.commerce.telesales.widgets.controls.TextControlDescriptorFactory" controlType="text"/> </extension point>
Related concepts
Related tasks