Package org.apache.tapestry.annotations

Examples of org.apache.tapestry.annotations.ComponentClass.meta()


        MutableComponentModel model = newMutableComponentModel();
        ComponentClass annotation = newMock(ComponentClass.class);

        train_getAnnotation(ct, ComponentClass.class, annotation);

        expect(annotation.meta()).andReturn(new String[]
        { "foo=bar", "baz=biff" });

        model.setMeta("foo", "bar");
        model.setMeta("baz", "biff");
View Full Code Here


        ComponentClass annotation = transformation.getAnnotation(ComponentClass.class);

        if (annotation == null)
            return;

        for (String meta : annotation.meta())
        {
            KeyValue kv = TapestryUtils.parseKeyValue(meta);

            model.setMeta(kv.getKey(), kv.getValue());
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.