Package org.apache.hivemind.service

Examples of org.apache.hivemind.service.BodyBuilder.clear()


        while (mi.hasNext())
        {
            MethodSignature m = mi.next();

            builder.clear();
            builder.begin();
            builder.add("return ($r) ");
            builder.add(indirection);
            builder.add(".");
            builder.add(m.getName());
View Full Code Here


        MethodSignature sig = new MethodSignature(Map.class, "getFred", null, null);

        op.addMethod(Modifier.PUBLIC, sig, builder.toString());

        builder.clear();
        builder.begin();
        builder.addln("_$applicationStateManager.store(\"barney\", $1);");
        builder.addln("_$fred = $1;");
        builder.end();
View Full Code Here

        builder.addln("{0} = {1}.createBinding(this);", bindingField, creatorField);

        op.extendMethodImplementation(IComponent.class, EnhanceUtils.FINISH_LOAD_SIGNATURE, builder
                .toString());

        builder.clear();

        builder.addln("{0} = {1};", fieldName, EnhanceUtils.createUnwrapExpression(
                op,
                bindingField,
                propertyType));
View Full Code Here

        op.addMethod(Modifier.PUBLIC, sig, builder.toString());

        // Mutator

        builder.clear();
        builder.begin();
        builder.addln("_$applicationStateManager.store(\"{0}\", $1);", objectName);
        builder.addln("{0} = $1;", fieldName);
        builder.end();
View Full Code Here

        // Method _service() will look up the service implementation,
        // then update the deferred proxy to go directly to the
        // service implementation, bypassing itself!

        body.clear();
        body.begin();

        body.add("if (_service == null)");
        body.begin();
View Full Code Here

        while (mi.hasNext())
        {
            MethodSignature m = mi.next();

            builder.clear();
            builder.begin();
            builder.add("return ($r) ");
            builder.add(indirection);
            builder.add(".");
            builder.add(m.getName());
View Full Code Here

        builder.addServiceMethods("_service()");

        // Build the implementation of interface SingletonInnerProxy

        body.clear();
        body.begin();

        body.add("_service();");

        body.end();
View Full Code Here

        builder.end();

        MethodFab methodFab = classFab.addMethod(Modifier.PUBLIC, sig, builder.toString());

        builder.clear();

        builder.begin();
        builder.add("org.apache.hivemind.service.impl.LoggingUtils.exception(_log, ");
        builder.addQuoted(methodName);
        builder.addln(", $e);");
View Full Code Here

        builder.end();

        MethodFab methodFab = classFab.addMethod(Modifier.PUBLIC, sig, builder.toString());

        builder.clear();

        builder.begin();
        builder.add("org.apache.hivemind.service.impl.LoggingUtils.exception(_log, ");
        builder.addQuoted(methodName);
        builder.addln(", $e);");
View Full Code Here

                Modifier.PUBLIC,
                new MethodSignature(String.class, "getFred", null, null),
                builder.toString(),
                null);

        builder.clear();

        builder.begin();
        builder.addln("if (! isInActiveState())");
        builder.begin();
        builder.addln("_$fred$Default = $1;");
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.