Examples of addInterface()


Examples of org.allspice.bytecode.ClassDef.addInterface()

        fdcls = StdJavaExpressions.makeFieldDecls(classPool,classPool.new SimpleResolver(cname),fdcls);
      } catch (CompilerException e) {
        errors.add(e) ;
      }
      for(String iface: cdecl.interfaces) {
        cd = cd.addInterface(fuinfo.getFullQualified(iface)) ;
      }
      for(FieldOrMethod fom: cdecl.decls) {
        if (fom instanceof FieldDecl) {
          try {
            cd = cd.addField(getDef(converter,classPool,cdecl,(FieldDecl)fom,fuinfo)) ;
View Full Code Here

Examples of org.apache.aries.blueprint.mutable.MutableServiceMetadata.addInterface()

        MutableServiceMetadata commandService = context.createMetadata(MutableServiceMetadata.class);
        commandService.setActivation(MutableServiceMetadata.ACTIVATION_LAZY);
        commandService.setId(getName());
        //commandService.setAutoExport(ServiceMetadata.AUTO_EXPORT_ALL_CLASSES);
        commandService.addInterface(CompletableFunction.class.getName());
        commandService.addInterface(Function.class.getName());
        commandService.setServiceComponent(command);
        commandService.addServiceProperty(createStringValue(context, "osgi.command.scope"),
                                          createStringValue(context, scope));
        commandService.addServiceProperty(createStringValue(context, "osgi.command.function"),
View Full Code Here

Examples of org.apache.bcel.generic.ClassGen.addInterface()

        for (int i = 0; i < intfs.length; i++) {
            if (intf.equals(intfs[i])) {
                return false;
            }
        }
        gen.addInterface(intf);
        m_isModified = true;
        m_instanceOfs = null;
        return true;
    }
View Full Code Here

Examples of org.apache.click.eclipse.ui.wizard.NewClassWizard.addInterface()

                // Opens the new java class creation wizard
                NewClassWizard wizard = new NewClassWizard();
                wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
                if(superClass!=null){
                  if(superClass == ClickPlugin.CLICK_CONTROL_IF || superClass.endsWith("Service")){
                    wizard.addInterface(superClass);
                  } else {
                    wizard.setSuperClass(superClass);
                  }
                }
                wizard.setClassName(className);
View Full Code Here

Examples of org.apache.click.eclipse.ui.wizard.NewClickPageWizard.addInterface()

                // Opens the new java class creation wizard
                NewClassWizard wizard = new NewClassWizard();
                wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project));
                if(superClass!=null){
                  if(superClass == ClickPlugin.CLICK_CONTROL_IF || superClass.endsWith("Service")){
                    wizard.addInterface(superClass);
                  } else {
                    wizard.setSuperClass(superClass);
                  }
                }
                wizard.setClassName(className);
View Full Code Here

Examples of org.apache.cxf.tools.common.model.JavaModel.addInterface()

            OperationProcessor operationProcessor = new OperationProcessor(context);
            operationProcessor.process(intf, operation);
        }

        jmodel.setLocation(intf.getLocation());
        jmodel.addInterface(intf.getName(), intf);
    }

    private boolean isOverloading(QName operationName) {
        if (operationMap.contains(operationName)) {
            return true;
View Full Code Here

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

        // generate ServiceDescription if required
        final boolean generateService = cad.getBooleanValue("generateService", true);
        if (generateService) {
            final ServiceDescription sd = new ServiceDescription(cad);
            sd.addInterface(HealthCheck.class.getName());
            classDescription.add(sd);
        }

        // generate HC PropertyDescriptions
        generateStringPropertyDescriptor(cad, classDescription, metatype, "name", HealthCheck.NAME, "Name", "Name", false);
View Full Code Here

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

            }
        }

        if (listedInterfaces.size() > 0 && !listedInterfaces.contains(AutoDetect.class.getName())) {
            for (final String i : listedInterfaces) {
                service.addInterface(i);
            }
        } else {
            // auto detection
            addInterfaces(service, scannedClass.getScannedClass());
        }
View Full Code Here

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

        // generate ServiceDescription if required
        final boolean generateService = cad.getBooleanValue("generateService", true);
        if (generateService) {
            final ServiceDescription sd = new ServiceDescription(cad);
            sd.addInterface("javax.servlet.Servlet");
            classDescription.add(sd);
        }

        // generate PropertyDescriptions
View Full Code Here

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

        // generate ServiceDescription if required
        final boolean generateService = cad.getBooleanValue("generateService", true);
        if (generateService) {
            final ServiceDescription sd = new ServiceDescription(cad);
            sd.addInterface("javax.servlet.Filter");
            classDescription.add(sd);
        }

        // generate PropertyDescriptions
        // property order = service.ranking
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.