Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.InjectSpecificationImpl


                        sig,
                        "return (org.apache.tapestry.html.BasePage)getPage().getRequestCycle().getPage(\"SomePage\");");

        replayControls();

        InjectSpecification is = new InjectSpecificationImpl();
        is.setProperty("somePage");
        is.setObject("SomePage");

        new InjectPageWorker().performEnhancement(op, is);

        verifyControls();
    }
View Full Code Here


*/
public class TestInjectMetaWorker extends HiveMindTestCase
{
    private InjectSpecification newSpec(String propertyName, String object)
    {
        InjectSpecificationImpl result = new InjectSpecificationImpl();

        result.setProperty(propertyName);
        result.setObject(object);

        return result;
    }
View Full Code Here

*/
public class TestInjectObjectWorker extends HiveMindTestCase
{
    private InjectSpecification newSpec(String name, String locator, Location location)
    {
        InjectSpecification is = new InjectSpecificationImpl();

        is.setProperty(name);
        is.setObject(locator);
        is.setLocation(location);

        return is;
    }
View Full Code Here

    {
        String propertyName = AnnotationUtils.getPropertyName(method);

        InjectMeta annotation = method.getAnnotation(InjectMeta.class);

        InjectSpecification is = new InjectSpecificationImpl();
        is.setProperty(propertyName);
        is.setType("meta");
        is.setObject(annotation.value());
        is.setLocation(location);
       
        spec.addInjectSpecification(is);
    }
View Full Code Here

*/
public class TestInjectObjectWorker extends HiveMindTestCase
{
    private InjectSpecification newSpec(String name, String locator, Location location)
    {
        InjectSpecification is = new InjectSpecificationImpl();

        is.setProperty(name);
        is.setObject(locator);
        is.setLocation(location);

        return is;
    }
View Full Code Here

*/
public class TestInjectWorker extends HiveMindTestCase
{
    private List createInjectSpec(String name, String locator, Location location)
    {
        InjectSpecification is = new InjectSpecificationImpl();

        is.setProperty(name);
        is.setObjectReference(locator);
        is.setLocation(location);

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

@Test
public class TestInjectMetaWorker extends BaseComponentTestCase
{
    private InjectSpecification newSpec(String propertyName, String object, Location location)
    {
        InjectSpecificationImpl result = new InjectSpecificationImpl();

        result.setProperty(propertyName);
        result.setObject(object);
        result.setLocation(location);

        return result;
    }
View Full Code Here

        return newMock(ApplicationStateManager.class);
    }

    private InjectSpecification newSpec(String propertyName, String objectName, Location l)
    {
        InjectSpecification spec = new InjectSpecificationImpl();

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

        return spec;
    }
View Full Code Here

        verify();
    }

    private InjectSpecification newSpec(Location l)
    {
        InjectSpecification is = new InjectSpecificationImpl();
        is.setProperty("somePage");
        is.setObject("SomePage");
        is.setLocation(l);

        return is;
    }
View Full Code Here

        String keyName = annotation.value();

        if (keyName.equals(""))
            keyName = AnnotationUtils.convertMethodNameToKeyName(method.getName());

        InjectSpecification is = new InjectSpecificationImpl();
        is.setProperty(propertyName);
        is.setType("meta");
        is.setObject(keyName);
        is.setLocation(location);
       
        spec.addInjectSpecification(is);
    }
View Full Code Here

TOP

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

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.