WebSphere Commerce EnterpriseWebSphere Commerce Professional

Declaring 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

  1. Create a new plug-in to contain your customizations.
  2. In your plug-in's plugin.xml, use the com.ibm.commerce.telesales.widgets.controlFactories extension point to declare your 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>