Package org.apache.beehive.controls.spi.context

Examples of org.apache.beehive.controls.spi.context.ControlBeanContextFactory


        // Create the context that acts as the BeanContextProxy for this bean (the context that this bean _defines_).
        try
        {
            DiscoverClass discoverer = new DiscoverClass();
            Class factoryClass = discoverer.find(ControlBeanContextFactory.class, DefaultControlBeanContextFactory.class.getName());
            ControlBeanContextFactory factory = (ControlBeanContextFactory)factoryClass.newInstance();
            _cbc = factory.instantiate(this);
        }
        catch (Exception e) {
            throw new ControlException("Exception creating ControlBeanContext", e);
        }
View Full Code Here


        // active container context and implicitly associated the control with it.
        //
        if (context == null)
            context = ControlThreadContext.getContext();

        ControlBeanContextFactory cbcFactory = lookupControlBeanContextFactory(context);
        _cbc = cbcFactory.instantiate(this);

        //
        // Associate this bean with the context.  Beans may run without a context!
        // Note that the add() call has the side-effect of calling ControlBean.setBeanContext(), which does
        // additional setup work, so we make sure we always call that anyways!
View Full Code Here

    private ControlBeanContextFactory lookupControlBeanContextFactory
        (org.apache.beehive.controls.api.context.ControlBeanContext context) {

        // first, try to find the CBCFactory from the container
        if(context != null) {
            ControlBeanContextFactory cbcFactory = context.getService(ControlBeanContextFactory.class, null);

            if(cbcFactory != null) {
                return cbcFactory;
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.beehive.controls.spi.context.ControlBeanContextFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.