Examples of addInterface()


Examples of org.mozilla.classfile.ClassFileWriter.addInterface()

        ClassFileWriter cfw = new ClassFileWriter(className, superName,
                                                  "<EventAdapter>");
        for (Object c : classes) {
            clazz = (Class<?>)c;
            if (clazz.isInterface()) {
                cfw.addInterface(clazz.getName());
            }
            Collections.addAll(methods, clazz.getMethods());
        }

        cfw.addField("events", adapterSignature, (short) (ACC_PRIVATE | ACC_FINAL));
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJRemote.addInterface()

                if (jRemote == null) {
                    JLocal addedJLocal = new JLocal();
                    addedJLocal.addInterface(itfFound);
                    sessionBean.setLocalInterfaces(addedJLocal);
                } else {
                    jRemote.addInterface(itfFound);
                    sessionBean.setRemoteInterfaces(jRemote);
                }
            }
        }
    }
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.impl.struct.JLocal.addInterface()

                // descriptor.

                // Build a local interface if no @Remote annotation, else add interface in the existing object
                if (jRemote == null) {
                    JLocal addedJLocal = new JLocal();
                    addedJLocal.addInterface(itfFound);
                    sessionBean.setLocalInterfaces(addedJLocal);
                } else {
                    jRemote.addInterface(itfFound);
                    sessionBean.setRemoteInterfaces(jRemote);
                }
View Full Code Here

Examples of org.renjin.gcc.jimple.JimpleClassBuilder.addInterface()

    if (!invokers.contains(method)) {

      JimpleClassBuilder invokerClass = context.getJimpleOutput().newClass();
      invokerClass.setClassName(invokerName);
      invokerClass.addInterface(getInterfaceName(method));

      JimpleMethodBuilder applyMethod = invokerClass.newMethod();
      applyMethod.setModifiers(JimpleModifiers.PUBLIC);
      applyMethod.setName("apply");
      applyMethod.setReturnType(method.getReturnType());
View Full Code Here

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

     * @return the endpoint
     */
    public InternalEndpoint activateEndpoint(ComponentContextImpl provider, QName serviceName, String endpointName) {
        InternalEndpoint answer = new InternalEndpoint(provider.getComponentNameSpace(), endpointName, serviceName);
        if (provider.getActivationSpec().getInterfaceName() != null) {
            answer.addInterface(provider.getActivationSpec().getInterfaceName());
        }
        retrieveInterfacesFromDescription(provider, answer);
        activateEndpoint(provider, answer);
        return answer;
    }
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addInterface()

    if (!shouldProxyTargetClass(beanClass, beanName)) {
      // Must allow for introductions; can't just set interfaces to
      // the target's interfaces only.
      Class[] targetInterfaces = ClassUtils.getAllInterfacesForClass(beanClass, this.proxyClassLoader);
      for (int i = 0; i < targetInterfaces.length; i++) {
        proxyFactory.addInterface(targetInterfaces[i]);
      }
    }

    Advisor[] advisors = buildAdvisors(beanName, specificInterceptors);
    for (int i = 0; i < advisors.length; i++) {
View Full Code Here

Examples of org.springframework.aop.support.DefaultIntroductionAdvisor.addInterface()

            return new AsyncResult<String>(invocation.getArguments()[0].toString());
          }
          return null;
        }
      });
      advisor.addInterface(AsyncInterface.class);
      pf.addAdvisor(advisor);
      this.proxy = (AsyncInterface) pf.getProxy();
    }

    @Override
View Full Code Here

Examples of rocket.generator.rebind.type.NewConcreteType.addInterface()

    type.setAbstract(false);
    type.setFinal(true);
    type.setSuperType(superType);
    type.setVisibility(Visibility.PUBLIC);

    type.addInterface(this.getAsyncServiceInterface(serviceInterface));
    type.addInterface(this.getRequiredInterface());
    type.addInterface(this.getServiceDefTarget());

    return type;
  }
View Full Code Here

Examples of rocket.generator.rebind.type.NewNestedType.addInterface()

    final NewNestedType proxy = beanFactory.newNestedType();
    proxy.setStatic(false);
    proxy.setNestedName(this.escapeBeanIdToBeClassNameSafe(id) + Constants.PROXY_SUFFIX);

    if (bean instanceof Rpc) {
      proxy.addInterface(targetBeanType);
    } else {
      proxy.setSuperType(targetBeanType);
    }
    proxy.setVisibility(Visibility.PRIVATE);
View Full Code Here

Examples of se.sics.cooja.MoteInterfaceHandler.addInterface()

      // Add position interface
      Position motePosition = new Position(this);
      Random random = new Random(); /* Do not use main random generator for positioning */
      motePosition.setCoordinates(random.nextDouble()*100, random.nextDouble()*100, random.nextDouble()*100);
      moteInterfaceHandler.addInterface(motePosition);

      // Add LED interface
      moteInterfaceHandler.addInterface(new MicaZLED(micaZ));
      // Add Radio interface
      moteInterfaceHandler.addInterface(new MicaZRadio(this));
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.