Package org.apache.hivemind.service

Examples of org.apache.hivemind.service.ClassFab.addField()


        cfc.setReturnValue(fab);

        // String because "FRED_VALUE" is a String

        fab.addField("fred", String.class);

        replayControls();

        EnhancementOperationImpl eo = new EnhancementOperationImpl(new DefaultClassResolver(),
                spec, BaseComponent.class, cf);
View Full Code Here


        verifyControls();

        HashMap map = new HashMap();

        fab.addField("fred$0", Map.class);

        replayControls();

        assertEquals("fred$0", eo.addInjectedField("fred", Map.class, map));
View Full Code Here

                AbstractEJBProxy.class,
                invokingModule.getClassResolver().getClassLoader());

        classFab.addInterface(serviceInterface);

        classFab.addField("_remote", serviceInterface);

        addClearCachedMethod(classFab);

        addLookupMethod(classFab, homeInterface, serviceInterface, jndiName);
View Full Code Here

        cf.newClass("$BaseComponent_97", BaseComponent.class);

        cfc.setReturnValue(fab);

        fab.addField("fred", String.class);

        replayControls();

        EnhancementOperation eo = new EnhancementOperationImpl(new DefaultClassResolver(), spec,
                BaseComponent.class, cf);
View Full Code Here

        factory.newClass("NewClass", Object.class);
        factoryControl.setReturnValue(cf);

        cf.addInterface(ToStringAdapter.class);
        cf.addField("_adapterRegistry", AdapterRegistry.class);

        cf.addConstructor(new Class[]
        { AdapterRegistry.class }, null, "_adapterRegistry = $1;");
        cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));
View Full Code Here

        factory.newClass("NewClass", Object.class);
        factoryControl.setReturnValue(cf);

        cf.addInterface(Runnable.class);
        cf.addField("_adapterRegistry", AdapterRegistry.class);

        cf.addConstructor(new Class[]
        { AdapterRegistry.class }, null, "_adapterRegistry = $1;");
        cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));
View Full Code Here

                proxyClassName,
                AbstractEJBProxy.class);

        classFab.addInterface(serviceInterface);

        classFab.addField("_remote", serviceInterface);

        addClearCachedMethod(classFab);

        addLookupMethod(classFab, homeInterface, serviceInterface, jndiName);
View Full Code Here

        Class serviceInterface = servicePoint.getServiceInterface();

        // This will initally be the inner proxy, then switch over to the
        // service implementation.

        classFab.addField("_inner", serviceInterface);
        classFab.addField("_shutdown", boolean.class);

        classFab.addInterface(RegistryShutdownListener.class);

        classFab.addMethod(
View Full Code Here

        // This will initally be the inner proxy, then switch over to the
        // service implementation.

        classFab.addField("_inner", serviceInterface);
        classFab.addField("_shutdown", boolean.class);

        classFab.addInterface(RegistryShutdownListener.class);

        classFab.addMethod(
            Modifier.PUBLIC | Modifier.FINAL,
View Full Code Here

        Class serviceInterface = servicePoint.getServiceInterface();
        ProxyBuilder builder = new ProxyBuilder("InnerProxy", servicePoint);

        ClassFab classFab = builder.getClassFab();

        classFab.addField("_deferredProxy", deferredProxyClass);
        classFab.addField("_service", serviceInterface);
        classFab.addField("_serviceModel", getClass());

        BodyBuilder body = new BodyBuilder();
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.