|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJavaControlFactory
public class JavaControlFactory
The SimpleControlFactory class is a default implementation of the
org.apache.beehive.controls.api.bean.ControlFactory
interface. It
uses Java reflection to create new control instances.
Controls.instantiate(java.lang.ClassLoader, java.lang.String, org.apache.beehive.controls.api.properties.PropertyMap)
,
ControlFactory
Constructor Summary | |
---|---|
JavaControlFactory()
|
Method Summary | ||
---|---|---|
|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaControlFactory()
Method Detail |
---|
public <T extends ControlBean> T instantiate(Class<T> beanClass, PropertyMap props, ControlBeanContext context, String id)
instantiate
in interface ControlFactory
beanClass
- the ControlBean class to instantiateprops
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |