Examples of addInterface()


Examples of org.apache.felix.scrplugin.description.ServiceDescription.addInterface()

            }
            if ( serviceDesc.isServiceFactory() ) {
                service.setServiceFactory(true);
            }
            for(final String className : serviceDesc.getInterfaces()) {
                service.addInterface(className);
            }
        }
    }

    private boolean isPrivateProperty(final String name) {
View Full Code Here

Examples of org.apache.flex.compiler.internal.tree.as.ClassNode.addInterface()

        // generate the pbj class name
        String pbjClassName = data.getQName();
        ClassNode classNodePbj = new ClassNode(new IdentifierNode(pbjClassName));
        classNodePbj.setBaseClass(new IdentifierNode("Shader"));
        classNodePbj.addInterface(new IdentifierNode("IFlexAsset"));
        classNodePbj.setNamespace(new NamespaceIdentifierNode(INamespaceConstants.public_));
        packageContents.addItem(classNodePbj);

        // build the constructor
        IdentifierNode constructorNameNode = new IdentifierNode(pbjClassName);
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanInfoBuilder.addInterface()

      if ((n.startsWith("get") && pt.length==0) || (n.startsWith("set") && pt.length==1 && rt==Void.TYPE))
  pm.add(n.substring(3,4).toLowerCase()+n.substring(4));
    }

    //    pm.remove("class"); // do we want this available ?
    gbif.addInterface(c, (String[])pm.toArray(new String[pm.size()]));
    //gbif.addInterface(c);
    GBeanData gbd=new GBeanData(createObjectName(name), gbif.getBeanInfo());
    // ensure the injection of the InvocationHandler into the newly instantiated Proxy
    gbd.setAttribute("invocationHandler"  , new InvocationHandler(bean));
View Full Code Here

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

        // service implementation.

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

        classFab.addInterface(RegistryShutdownListener.class);

        classFab.addMethod(Modifier.PUBLIC | Modifier.FINAL, new MethodSignature(void.class,
                "registryDidShutdown", null, null), "{ _shutdown = true; }");

        classFab.addMethod(
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();
    }

    public void instantiateService()
View Full Code Here

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

        String proxyClassName = ClassFabUtils.generateClassName("EJBProxy");

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

        classFab.addInterface(serviceInterface);

        classFab.addField("_remote", serviceInterface);

        addClearCachedMethod(classFab);
View Full Code Here

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

        String name = ClassFabUtils.generateClassName("DefaultImpl");

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

        cf.addInterface(interfaceType);

        boolean toString = false;

        Method[] methods = interfaceType.getMethods();
View Full Code Here

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

            _classFactory.newClass(
                name,
                AbstractLoggingInterceptor.class,
                stack.getServiceModule());

        classFab.addInterface(serviceInterfaceClass);
        classFab.addField("_inner", serviceInterfaceClass);

        classFab.addConstructor(
            new Class[] { Log.class, serviceInterfaceClass },
            null,
View Full Code Here

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

    public void testAddInterface() throws Exception
    {
        ClassFab cf = newClassFab("SimpleService", Object.class);

        cf.addInterface(SimpleService.class);

        cf.addMethod(
            Modifier.PUBLIC,
            new MethodSignature(int.class, "add", new Class[] { int.class, int.class }, null),
            "return $1 + $2;");
View Full Code Here

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

    public void testBadMethodBody() throws Exception
    {
        ClassFab cf = newClassFab("BadMethodBody", Object.class);

        cf.addInterface(Runnable.class);

        try
        {
            cf.addMethod(
                Modifier.PUBLIC,
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.