Examples of InterfaceInfo


Examples of flex2.compiler.as3.binding.InterfaceInfo

        {
          currentInfo.setNeedsToImplementIEventDispatcher(true);

          MultiName multiName = new MultiName(StandardDefs.PACKAGE_FLASH_EVENTS,
                            GenerativeExtension.IEVENT_DISPATCHER);
          InterfaceInfo interfaceInfo = typeAnalyzer.analyzeInterface(context, multiName, classInfo);

          // interfaceInfo will be null if IEventDispatcher was not resolved.
          // This most likely means that playerglobal.swc was not in the
          // external-library-path and other errors will be reported, so punt.
          if ((interfaceInfo == null) || checkForExistingMethods(context, node, classInfo, interfaceInfo))
          {
            return null;
          }

          classInfo.addInterfaceMultiName(StandardDefs.PACKAGE_FLASH_EVENTS,
                                                    GenerativeExtension.IEVENT_DISPATCHER);
        }

        if (!classInfo.implementsInterface(standardDefs.getDataPackage(), IMANAGED))
        {
          currentInfo.setNeedsToImplementIManaged(true);

                    // Don't be tempted to check for mx.core.IUID here, because
                    // analyzeInterface() sets up the inheritance for downstream
                    // consumers and if we only add IUID to the inheritance, then
                    // the check for IManaged in the enclosing if statement will fail.
          MultiName multiName = new MultiName(standardDefs.getDataPackage(), IMANAGED);
          InterfaceInfo interfaceInfo = typeAnalyzer.analyzeInterface(context, multiName, classInfo);

          // interfaceInfo will be null if IManaged was not resolved.
          // This most likely means that fds.swc was not in the
          // library-path and other errors will be reported, so punt.
          if ((interfaceInfo == null) || checkForExistingMethods(context, node, classInfo, interfaceInfo))
View Full Code Here

Examples of fr.xlim.ssd.capmanipulator.library.InterfaceInfo

     *
     * @throws java.io.IOException
     */
    public InterfaceInfo load(byte bitfield, CapInputStream in) throws UnableToReadCapFileException {

        InterfaceInfo interfaceInfo = new InterfaceInfo();

        interfaceInfo.setBitfield(bitfield);
        // the number of entries entries in the SuperInterfaces array
        // is in the second nibble of the bitField
        byte interfaceCount = (byte) (bitfield & 0x0F);

        // superInterfaces loading
        interfaceInfo.getSuperInterfaces().clear();

        for (int i = 0; i < interfaceCount; i++) {
            ClassRef c = new ClassRefRead().load(in);

            interfaceInfo.getSuperInterfaces().add(c);
        }

        // intefaceNameInfo loading (only if the bit remote is set in the flag)
        if ((bitfield & ClassComponent.ACC_REMOTE) >>> 5 == ClassComponent.ACC_REMOTE) {
            interfaceInfo.setInterfaceNameInfo(new InterfaceNameInfoRead().load(in));
        }
        {
            interfaceInfo.setInterfaceNameInfo(new InterfaceNameInfo());
        }

        return interfaceInfo;
    }
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

            // Get information about the operation being invoked from the WSDL
            // definition.
            // We need this to marshal data correctly

            BindingInfo bInfo = destination.getBindingInfo();
            InterfaceInfo info = bInfo.getInterface();       
       
            String opName = message.getExchange().get(String.class);
               
            Iterator iter = bInfo.getOperations().iterator();
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

                                                                                                                      
        CorbaDestination destination = control.createMock(CorbaDestination.class);
        EndpointInfo endpointInfo = control.createMock(EndpointInfo.class);
        ServiceInfo sInfo = control.createMock(ServiceInfo.class);
        BindingInfo bInfo = control.createMock(BindingInfo.class);
        InterfaceInfo info = control.createMock(InterfaceInfo.class);
        BindingOperationInfo bopInfo = control.createMock(BindingOperationInfo.class);
        OperationInfo opInfo = control.createMock(OperationInfo.class);
        EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
        EasyMock.expect(destination.getEndPointInfo()).andReturn(endpointInfo);               
        QName qname = new QName("" , "Test", "");
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

                                           CorbaDestination destination)
        throws Exception {
        QName opQName = null;
        OperationType opType = null;
        BindingInfo bInfo = destination.getBindingInfo();             
        InterfaceInfo info = bInfo.getInterface();       
        EventDataReader reader = (EventDataReader) ContextUtils.getDataReader(message);
        
        Exchange exchange = message.getExchange();
        orb = (ORB)exchange.get(ORB.class);
        if (corbaStaxObject != null) {
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

        }

        EventDataReader reader;
        reader = (EventDataReader) ContextUtils.getDataReader(message);
        BindingInfo bInfo = destination.getBindingInfo();             
        InterfaceInfo info = bInfo.getInterface();
       
        Exchange exchange = message.getExchange();
        BindingOperationInfo bopInfo = exchange.get(BindingOperationInfo.class);

        // Handle the parameters that are given for the operation
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

        // }
        // }
    }

    public void buildInterface(ServiceInfo si, PortType p) {
        InterfaceInfo inf = si.createInterface(p.getQName());
        DescriptionInfo d = si.getDescription();
        if (null != d) {
            d.getDescribed().add(inf);
        }
        copyDocumentation(inf, p);
        this.copyExtensors(inf, p.getExtensibilityElements());
        this.copyExtensionAttributes(inf, p);
        if (recordOriginal) {
            inf.setProperty(WSDL_PORTTYPE, p);
        }
        for (Operation op : cast(p.getOperations(), Operation.class)) {
            buildInterfaceOperation(inf, op);
        }
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

            return getLogger();
        }
        Logger logger = endpoint.getProperty("MessageLogger", Logger.class);
        if (logger == null) {
            String serviceName = endpoint.getService().getName().getLocalPart();
            InterfaceInfo iface = endpoint.getService().getInterface();
            String portName = endpoint.getName().getLocalPart();
            String portTypeName = iface.getName().getLocalPart();
            String logName = "org.apache.cxf.services." + serviceName + "."
                + portName + "." + portTypeName;
            logger = LogUtils.getL7dLogger(this.getClass(), null, logName);
            endpoint.setProperty("MessageLogger", logger);
        }
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

    protected void initializeWSDLOperations() {
        List<OperationInfo> removes = new ArrayList<OperationInfo>();
        Method[] methods = serviceClass.getMethods();
        Arrays.sort(methods, new MethodComparator());

        InterfaceInfo intf = getInterfaceInfo();

        Map<QName, Method> validMethods = new HashMap<QName, Method>();
        for (Method m : methods) {
            if (isValidMethod(m)) {
                QName opName = getOperationName(intf, m);
                validMethods.put(opName, m);
            }
        }

        for (OperationInfo o : intf.getOperations()) {
            Method selected = null;
            for (Map.Entry<QName, Method> m : validMethods.entrySet()) {
                QName opName = m.getKey();

                if (o.getName().getNamespaceURI().equals(opName.getNamespaceURI())
                    && isMatchOperation(o.getName().getLocalPart(), opName.getLocalPart())) {
                    selected = m.getValue();
                    break;
                }
            }

            if (selected == null) {
                LOG.log(Level.WARNING, "NO_METHOD_FOR_OP", o.getName());
                removes.add(o);
            } else {
                initializeWSDLOperation(intf, o, selected);
            }
        }
        for (OperationInfo op : removes) {
            intf.removeOperation(op);
        }

        // Some of the operations may have switched from unwrapped to wrapped.
        // Update the bindings.
        for (ServiceInfo service : getService().getServiceInfos()) {
View Full Code Here

Examples of org.apache.cxf.service.model.InterfaceInfo

        return svcInfo;
    }

    protected InterfaceInfo createInterface(ServiceInfo serviceInfo) {
        QName intfName = getInterfaceName();
        InterfaceInfo intf = new InterfaceInfo(serviceInfo, intfName);

        Method[] methods = getServiceClass().getMethods();

        // The BP profile states we can't have operations of the same name
        // so we have to append numbers to the name. Different JVMs sort methods
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.