Package org.apache.tapestry.services

Examples of org.apache.tapestry.services.ClassTransformation.makeReadOnly()


        train_getBaseResource(model, r);

        train_addInjectedField(ct, Resource.class, "baseResource", r, "res");
        train_getResourcesFieldName(ct, "resources");

        ct.makeReadOnly("_fred");
        ct.claimField("_fred", annotation);

        train_extendConstructor(
                ct,
                "{",
View Full Code Here


        train_resolveMixinTypeToClassName(resolver, "Bar", "foo.bar.BazMixin");

        model.addMixinClassName("foo.bar.BazMixin");

        transformation.makeReadOnly("fred");

        train_getResourcesFieldName(transformation, "rez");

        train_extendMethod(
                transformation,
View Full Code Here

        train_getFieldAnnotation(transformation, "fred", Mixin.class, annotation);
        train_getFieldType(transformation, "fred", "foo.bar.Baz");

        model.addMixinClassName("foo.bar.Baz");

        transformation.makeReadOnly("fred");

        train_getResourcesFieldName(transformation, "rez");

        train_extendMethod(
                transformation,
View Full Code Here

        // tests for that.

        ct
                .extendConstructor("myField = (java.lang.Object) as.getAsset(br, \"foo.gif\", rez.getLocale());");

        ct.makeReadOnly(fieldName);

        replay();

        InjectionProvider provider = new AssetInjectionProvider(symbolSource, assetSource);
View Full Code Here

        train_getFieldAnnotation(ct, barneyFieldName, Id.class, barneyId);

        train_value(barneyId, "barney");

        ct.makeReadOnly(barneyFieldName);

        train_extendMethod(
                ct,
                TransformConstants.CONTAINING_PAGE_DID_LOAD_SIGNATURE,
                "_barneyBlock = rez.getBlock(\"barney\");");
View Full Code Here

        train_getResourcesFieldName(ct, "rez");

        train_getFieldAnnotation(ct, barneyFieldName, Id.class, null);

        ct.makeReadOnly(barneyFieldName);

        train_extendMethod(
                ct,
                TransformConstants.CONTAINING_PAGE_DID_LOAD_SIGNATURE,
                "_barney = rez.getBlock(\"barney\");");
View Full Code Here

        train_resolveMixinTypeToClassName(resolver, "Bar", "foo.bar.BazMixin");

        model.addMixinClassName("foo.bar.BazMixin");

        transformation.makeReadOnly("fred");

        train_getResourcesFieldName(transformation, "rez");

        train_extendMethod(
                transformation,
View Full Code Here

        train_getFieldAnnotation(transformation, "fred", Mixin.class, annotation);
        train_getFieldType(transformation, "fred", "foo.bar.Baz");

        model.addMixinClassName("foo.bar.Baz");

        transformation.makeReadOnly("fred");

        train_getResourcesFieldName(transformation, "rez");

        train_extendMethod(
                transformation,
View Full Code Here

        train_getBaseResource(model, r);

        train_addInjectedField(ct, Resource.class, "baseResource", r, "res");
        train_getResourcesFieldName(ct, "resources");

        ct.makeReadOnly("_fred");
        ct.claimField("_fred", annotation);

        train_extendConstructor(
                ct,
                "{",
View Full Code Here

        train_getFieldAnnotation(ct, "fred", Inject.class, fredAnnotation);

        train_value(fredAnnotation, "");

        ct.makeReadOnly("fred");
        ct.claimField("fred", fredAnnotation);

        train_getFieldAnnotation(ct, "_barneyBlock", Inject.class, barneyAnnotation);
        train_value(barneyAnnotation, "barney");
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.