org.apache.beehive.controls.spi.bean
Interface ControlFactory

All Known Implementing Classes:
JavaControlFactory

public interface ControlFactory

The ControlFactory interface defines a service provider interface for integrating an external JavaBean instantation/configuration framework with the Controls runtime.


Method Summary
<T extends ControlBean>
T
instantiate(Class<T> beanClass, PropertyMap props, ControlBeanContext context, String id)
          Instantiates a new ControlBean of the requested class, using mechanisms provided by a provider-specific JavaBeans framework.
 

Method Detail

instantiate

<T extends ControlBean> T instantiate(Class<T> beanClass,
                                      PropertyMap props,
                                      ControlBeanContext context,
                                      String id)
Instantiates a new ControlBean of the requested class, using mechanisms provided by a provider-specific JavaBeans framework.

Parameters:
beanClass - the ControlBean class to instantiate
props - an initial set of client-specified properties to associate with the bean instance. May be null.
context - the containing ControlBeanContext for the bean, if nested inside of a container or other control. May be null to use the current active execution context.
id - the bean control ID. Must be unique within the containing context. If null, a unique identifier will be auto-generated.
Returns:
a new ControlBean instance of the requested class.