Examples of addInterface()


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

    {
        Class serviceInterface = factoryParameters.getServiceInterface();

        ClassFab cf = _classFactory.newClass(name, Object.class);

        cf.addInterface(serviceInterface);

        cf.addField("_registry", StrategyRegistry.class);

        cf.addConstructor(new Class[]
        { StrategyRegistry.class }, null, "_registry = $1;");
View Full Code Here

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

        ClassFab classFab =
            _classFactory.newClass(
                proxyClassName,
                AbstractEJBProxy.class);

        classFab.addInterface(serviceInterface);

        classFab.addField("_remote", serviceInterface);

        addClearCachedMethod(classFab);
View Full Code Here

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

        body.end();

        classFab.addMethod(Modifier.PUBLIC | Modifier.FINAL, new MethodSignature(void.class,
                "_instantiateServiceImplementation", null, null), body.toString());

        classFab.addInterface(SingletonInnerProxy.class);

        return classFab.createClass();
    }

}
View Full Code Here

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

       
        String name = ClassFabUtils.generateClassName(serviceInterfaceClass);

        ClassFab classFab = _factory.newClass(name, Object.class);

        classFab.addInterface(serviceInterfaceClass);

        createInfrastructure(stack, classFab);

        addServiceMethods(stack, classFab, parameters);
View Full Code Here

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

        fpc.setReturnValue(ToStringStrategy.class);

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

        cf.addInterface(ToStringStrategy.class);
        cf.addField("_registry", StrategyRegistry.class);

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

Examples of org.apache.hivemind.service.InterfaceFab.addInterface()

        Iterator i = op.getInterfaces().iterator();
        while (i.hasNext())
        {
            Class interfaceClass = (Class) i.next();

            fab.addInterface(interfaceClass);
        }

        i = op.getNonInterfaceMethodSignatures().iterator();
        while (i.hasNext())
        {
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.generate.ComponentInfo.addInterface()

      ComponentInfo componentInfo = new ComponentInfo(declaration, componentTag);
      componentInfo.setSuperClass(componentTag.uiComponentBaseClass());
      componentInfo.setDescription(getDescription(declaration));
      componentInfo.setDeprecated(declaration.getAnnotation(Deprecated.class) != null);
      for (String interfaces : componentTag.interfaces()) {
        componentInfo.addInterface(interfaces);
      }

      Class<? extends UIComponent> facesClass
          = Class.forName(componentTag.uiComponentFacesClass()).asSubclass(UIComponent.class);
View Full Code Here

Examples of org.apache.servicemix.jbi.servicedesc.InternalEndpoint.addInterface()

        }       
        // Create a new endpoint
        InternalEndpoint serviceEndpoint = new InternalEndpoint(provider.getComponentNameSpace(), endpointName, serviceName);
        // Get interface from activationSpec
        if (provider.getActivationSpec().getInterfaceName() != null) {
            serviceEndpoint.addInterface(provider.getActivationSpec().getInterfaceName());
        }
        // Get interface from SU jbi descriptor
        retrieveInterfaceFromSUDescriptor(serviceEndpoint);
        // Get interfaces from WSDL
        retrieveInterfacesFromDescription(serviceEndpoint);
View Full Code Here

Examples of org.apache.tapestry.ioc.services.ClassFab.addInterface()

        // For eager load services, add an eagerLoadService() method that calls _delegate(), to
        // force the creation of the service.

        if (eagerLoad)
        {
            cf.addInterface(EagerLoadServiceProxy.class);

            cf.addMethod(Modifier.PUBLIC, new MethodSignature(void.class, "eagerLoadService", null,
                    null), "_delegate();");
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.ClassFab.addInterface()

        Class clazz = SimpleBean.class;

        ClassFab cf = factory.newClass(clazz.getName() + "$$Proxy", clazz);

        cf.addInterface(Serializable.class);

        Class proxyClass = cf.createClass();

        SimpleBean simple = (SimpleBean) proxyClass.newInstance();
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.