| java.lang.Object org.apache.beehive.controls.api.bean.Controls
Controls | public class Controls (Code) | | Helper class for using controls. Includes static methods to help instantiate controls, and initialize
declarative control clients.
|
Method Summary | |
public static void | initializeClient(ClassLoader cl, Object client, ControlBeanContext cbc) Helper method for initializing instances of declarative control clients (objects that use controls via @Control
and @EventHandler annotations). | public static ControlBean | instantiate(ClassLoader cl, String beanName, PropertyMap props) Factory method for instantiating controls. | public static ControlBean | instantiate(ClassLoader cl, String beanName, PropertyMap props, ControlBeanContext cbc, String id) Factory method for instantiating controls.
Parameters: cl - the classloader used to load the ControlBean. | public static T | instantiate(Class<T> beanClass, PropertyMap props, ControlBeanContext context, String id) Factory method for instantiating controls.
Parameters: beanClass - the ControlBean class to instantiate Parameters: props - an optional PropertyMap containing initial property values for the control. |
initializeClient | public static void initializeClient(ClassLoader cl, Object client, ControlBeanContext cbc) throws ClassNotFoundException(Code) | | Helper method for initializing instances of declarative control clients (objects that use controls via @Control
and @EventHandler annotations). This method runs the client-specific generated ClientInitializer class to do
its initialization work.
Parameters: cl - the classloader used to load the ClientInitializer. If null, defaults to the classloader used toload the client object being initialized. Parameters: client - the client object being initialized. Parameters: cbc - the ControlBeanContext to be associated with the client object (that will nest the controls the clientdefines). If null, the thread-local context (possibly none) will be used. throws: ControlException - throws: ClassNotFoundException - |
instantiate | public static ControlBean instantiate(ClassLoader cl, String beanName, PropertyMap props) throws ClassNotFoundException(Code) | | Factory method for instantiating controls. Controls instantiated using this method will be associated with the
current thread-local ControlBeanContext (possibly none), and have an auto-generated ID.
Parameters: cl - the classloader used to load the ControlBean. If null, the system classloader will be used. Parameters: beanName - the fully qualified name of the ControlBean class. Parameters: props - an optional PropertyMap containing initial property values for the control. May be null. an instance of the specified ControlBean. throws: ClassNotFoundException - |
instantiate | public static ControlBean instantiate(ClassLoader cl, String beanName, PropertyMap props, ControlBeanContext cbc, String id) throws ClassNotFoundException(Code) | | Factory method for instantiating controls.
Parameters: cl - the classloader used to load the ControlBean. If null, the system classloader will be used. Parameters: beanName - the fully qualified name of the ControlBean class. Parameters: props - an optional PropertyMap containing initial property values for the control. May be null. Parameters: cbc - the ControlBeanContext that will nest the created control. If null, the thread-local context(possibly none) will be used. Parameters: id - a unique ID for the created control. If null, an ID will be auto-generated. an instance of the specified ControlBean. throws: ClassNotFoundException - |
instantiate | public static T instantiate(Class<T> beanClass, PropertyMap props, ControlBeanContext context, String id)(Code) | | Factory method for instantiating controls.
Parameters: beanClass - the ControlBean class to instantiate Parameters: props - an optional PropertyMap containing initial property values for the control. may be null. Parameters: context - the ControlBeanContext that will nest the created control. If null, the thread-local context (possibly none) will be used. Parameters: id - a unique ID for the created control. If null, an ID will be auto-generated. an instance of the specified ControlBean. |
|
|