Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.IBeanSpecification


        __CLOVER_225_0.S[5445]++;PropertyUtils.write(bi, "propertyName", name);
        __CLOVER_225_0.S[5446]++;PropertyUtils.write(bi, "key", key);

        __CLOVER_225_0.S[5447]++;bi.setLocation(getLocation());

        __CLOVER_225_0.S[5448]++;IBeanSpecification bs = (IBeanSpecification) peekObject();

        __CLOVER_225_0.S[5449]++;bs.addInitializer(bi);

        __CLOVER_225_0.S[5450]++;push(_elementName, null, STATE_NO_CONTENT);
    } finally { }}
View Full Code Here


        __CLOVER_225_0.S[5453]++;IBeanInitializer bi = _factory.createExpressionBeanInitializer();

        __CLOVER_225_0.S[5454]++;PropertyUtils.write(bi, "propertyName", name);

        __CLOVER_225_0.S[5455]++;IBeanSpecification bs = (IBeanSpecification) peekObject();

        __CLOVER_225_0.S[5456]++;push(_elementName, new BeanSetPropertySetter(bs, bi, expression), STATE_SET_PROPERTY, false);
    } finally { }}
View Full Code Here

        __CLOVER_52_0.S[1299]++;if ((((first.equals("beans")) && (++__CLOVER_52_0.CT[258] != 0)) || (++__CLOVER_52_0.CF[258] == 0))){
        {
            __CLOVER_52_0.S[1300]++;String name = split[start + 1];

            __CLOVER_52_0.S[1301]++;IBeanSpecification bs = _root.getSpecification().getBeanSpecification(name);

            __CLOVER_52_0.S[1302]++;if ((((bs == null || bs.getLifecycle() != BeanLifecycle.PAGE) && (++__CLOVER_52_0.CT[259] != 0)) || (++__CLOVER_52_0.CF[259] == 0))){
                __CLOVER_52_0.S[1303]++;return;}

            // Again, could cast to AbstractComponent, but this
            // is easier.
View Full Code Here

            __CLOVER_42_0.S[1026]++;bean = _beans.get(name);}

        __CLOVER_42_0.S[1027]++;if ((((bean != null) && (++__CLOVER_42_0.CT[198] != 0)) || (++__CLOVER_42_0.CF[198] == 0))){
            __CLOVER_42_0.S[1028]++;return bean;}

        __CLOVER_42_0.S[1029]++;IBeanSpecification spec = _component.getSpecification().getBeanSpecification(name);

        __CLOVER_42_0.S[1030]++;if ((((spec == null) && (++__CLOVER_42_0.CT[199] != 0)) || (++__CLOVER_42_0.CF[199] == 0))){
            __CLOVER_42_0.S[1031]++;throw new ApplicationRuntimeException(
                Tapestry.format(
                    "BeanProvider.bean-not-defined",
                    _component.getExtendedId(),
                    name));}

        __CLOVER_42_0.S[1032]++;bean = instantiateBean(name, spec);

        __CLOVER_42_0.S[1033]++;BeanLifecycle lifecycle = spec.getLifecycle();

        __CLOVER_42_0.S[1034]++;if ((((lifecycle == BeanLifecycle.NONE) && (++__CLOVER_42_0.CT[200] != 0)) || (++__CLOVER_42_0.CF[200] == 0))){
            __CLOVER_42_0.S[1035]++;return bean;}

        __CLOVER_42_0.S[1036]++;if ((((_beans == null) && (++__CLOVER_42_0.CT[201] != 0)) || (++__CLOVER_42_0.CF[201] == 0))){
View Full Code Here

            __CLOVER_42_0.S[1071]++;String name = (String) e.getKey();

            __CLOVER_42_0.S[1072]++;if ((((spec == null) && (++__CLOVER_42_0.CT[210] != 0)) || (++__CLOVER_42_0.CF[210] == 0))){
                __CLOVER_42_0.S[1073]++;spec = _component.getSpecification();}

            __CLOVER_42_0.S[1074]++;IBeanSpecification s = spec.getBeanSpecification(name);

            __CLOVER_42_0.S[1075]++;if ((((s.getLifecycle() == lifecycle) && (++__CLOVER_42_0.CT[211] != 0)) || (++__CLOVER_42_0.CF[211] == 0))){
            {
                __CLOVER_42_0.S[1076]++;Object bean = e.getValue();

                __CLOVER_42_0.S[1077]++;if ((((LOG.isDebugEnabled()) && (++__CLOVER_42_0.CT[212] != 0)) || (++__CLOVER_42_0.CF[212] == 0))){
                    __CLOVER_42_0.S[1078]++;LOG.debug("Removing " + lifecycle.getName() + " bean " + name + ": " + bean);}
View Full Code Here

        __CLOVER_225_0.S[13179]++;String className = getAttribute("class");
        __CLOVER_225_0.S[13180]++;BeanLifecycle lifecycle = (BeanLifecycle) getConvertedAttribute(
                "lifecycle",
                BeanLifecycle.REQUEST);

        __CLOVER_225_0.S[13181]++;IBeanSpecification bs = _factory.createBeanSpecification();

        __CLOVER_225_0.S[13182]++;bs.setClassName(className);
        __CLOVER_225_0.S[13183]++;bs.setLifecycle(lifecycle);

        __CLOVER_225_0.S[13184]++;IComponentSpecification cs = (IComponentSpecification) peekObject();

        __CLOVER_225_0.S[13185]++;cs.addBeanSpecification(name, bs);
View Full Code Here

        __CLOVER_225_0.S[13327]++;PropertyUtils.write(bi, "propertyName", name);
        __CLOVER_225_0.S[13328]++;PropertyUtils.write(bi, "key", key);

        __CLOVER_225_0.S[13329]++;bi.setLocation(getLocation());

        __CLOVER_225_0.S[13330]++;IBeanSpecification bs = (IBeanSpecification) peekObject();

        __CLOVER_225_0.S[13331]++;bs.addInitializer(bi);

        __CLOVER_225_0.S[13332]++;push(_elementName, null, STATE_NO_CONTENT);
    } finally { }}
View Full Code Here

        __CLOVER_225_0.S[13335]++;IBeanInitializer bi = _factory.createExpressionBeanInitializer(_expressionEvaluator);

        __CLOVER_225_0.S[13336]++;PropertyUtils.write(bi, "propertyName", name);

        __CLOVER_225_0.S[13337]++;IBeanSpecification bs = (IBeanSpecification) peekObject();

        __CLOVER_225_0.S[13338]++;push(_elementName, new BeanSetPropertySetter(bs, bi, expression), STATE_SET_PROPERTY, false);
    } finally { }}
View Full Code Here

            bean = _beans.get(name);

        if (bean != null)
            return bean;

        IBeanSpecification spec = _component.getSpecification().getBeanSpecification(name);

        if (spec == null)
            throw new ApplicationRuntimeException(BeanMessages.beanNotDefined(_component, name));

        bean = instantiateBean(name, spec);

        BeanLifecycle lifecycle = spec.getLifecycle();

        if (lifecycle == BeanLifecycle.NONE)
            return bean;

        if (_beans == null)
View Full Code Here

            String name = (String) e.getKey();

            if (spec == null)
                spec = _component.getSpecification();

            IBeanSpecification s = spec.getBeanSpecification(name);

            if (s.getLifecycle() == lifecycle)
            {
                Object bean = e.getValue();

                if (LOG.isDebugEnabled())
                    LOG.debug("Removing " + lifecycle.getName() + " bean " + name + ": " + bean);
View Full Code Here

TOP

Related Classes of org.apache.tapestry.spec.IBeanSpecification

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.