Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.InjectStateSpecification


                _applicationStateManager);

        Iterator i = injects.iterator();
        while (i.hasNext())
        {
            InjectStateSpecification iss = (InjectStateSpecification) i.next();

            try
            {
                injectState(op, iss.getProperty(), iss.getObjectName());
            }
            catch (Exception ex)
            {
                _errorLog.error(EnhanceMessages.errorAddingProperty(iss.getProperty(), op
                        .getBaseClass(), ex), iss.getLocation(), ex);
            }
        }
    }
View Full Code Here


        List l = cs.getInjectStateSpecifications();

        assertEquals(1, l.size());

        InjectStateSpecification s = (InjectStateSpecification) l.get(0);

        assertEquals("fred", s.getProperty());
        assertEquals("barney", s.getObjectName());
    }
View Full Code Here

        return spec;
    }

    private List newInjects(String propertyName, String objectName, Location l)
    {
        InjectStateSpecification spec = new InjectStateSpecificationImpl();

        spec.setProperty(propertyName);
        spec.setObjectName(objectName);
        spec.setLocation(l);

        return Collections.singletonList(spec);
    }
View Full Code Here

                "property",
                PROPERTY_NAME_PATTERN,
                "invalid-property-name");
        String objectName = getAttribute("object");

        InjectStateSpecification spec = _factory.createInjectStateSpecification();

        spec.setProperty(property);
        spec.setObjectName(objectName);
        IComponentSpecification cs = (IComponentSpecification) peekObject();

        cs.addInjectStateSpecification(spec);

        push(_elementName, spec, STATE_NO_CONTENT);
View Full Code Here

                "property",
                PROPERTY_NAME_PATTERN,
                "invalid-property-name");
        String objectName = getAttribute("object");

        InjectStateSpecification spec = _factory.createInjectStateSpecification();

        spec.setProperty(property);
        spec.setObjectName(objectName);
        IComponentSpecification cs = (IComponentSpecification) peekObject();

        cs.addInjectStateSpecification(spec);

        push(_elementName, spec, STATE_NO_CONTENT);
View Full Code Here

                _applicationStateManager);

        Iterator i = injects.iterator();
        while (i.hasNext())
        {
            InjectStateSpecification iss = (InjectStateSpecification) i.next();

            try
            {
                injectState(op, iss.getProperty(), iss.getObjectName());
            }
            catch (Exception ex)
            {
                _errorLog.error(EnhanceMessages.errorAddingProperty(iss.getProperty(), op
                        .getBaseClass(), ex), iss.getLocation(), ex);
            }
        }
    }
View Full Code Here

        return spec;
    }

    private List newInjects(String propertyName, String objectName, Location l)
    {
        InjectStateSpecification spec = new InjectStateSpecificationImpl();

        spec.setProperty(propertyName);
        spec.setObjectName(objectName);
        spec.setLocation(l);

        return Collections.singletonList(spec);
    }
View Full Code Here

        List l = cs.getInjectStateSpecifications();

        assertEquals(1, l.size());

        InjectStateSpecification s = (InjectStateSpecification) l.get(0);

        assertEquals("fred", s.getProperty());
        assertEquals("barney", s.getObjectName());
    }
View Full Code Here

TOP

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

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.