Examples of Wire


Examples of org.osgi.service.wireadmin.Wire

    public Wire createWire(MessageInjectionManager consumer) {
        if (wireAdmin != null ) {
            Properties wireProperties = new Properties();
            wireProperties.put(MessageProviderHandler.ATT_SESSION_ID, sessionId);
           
            Wire wire = wireAdmin.createWire(this.producerId, consumer.getConsumerId(), wireProperties);
           
            synchronized (this) {
                wires.put(consumer.getInstance().getDeclaration().getName(),wire);
      }
           
View Full Code Here

Examples of org.osgi.service.wireadmin.Wire

    /**
     * Deletes an existing wire, at the wire admin level, towards the specified consumer
     */
    public Wire deleteWire(MessageInjectionManager consumer) {

        Wire wire = null;
        synchronized (this) {
          wire = wires.remove(consumer.getInstance().getDeclaration().getName());
    }

        /*
 
View Full Code Here

Examples of org.osgi.service.wireadmin.Wire

                pw.println("Status: Wire Admin service not available");
            }
            else
            {
                final WireAdmin wireAdmin = (WireAdmin) service;
                final Wire wires[] = wireAdmin.getWires(null);

                if (null == wires || 0 == wires.length)
                {
                    pw.println("Status: No wires available");
                }
                else
                {
                    final int len = wires.length;
                    int valid = 0;
                    int connected = 0;

                    // status
                    for (int i = 0; i < len; i++)
                    {
                        final Wire wire = wires[i];
                        if (wire.isValid())
                            valid++;
                        if (wire.isConnected())
                            connected++;
                    }
                    pw.print("Status: ");
                    pw.print(len);
                    pw.print(" wires available, ");
View Full Code Here

Examples of org.papoose.core.Wire

        {
            Set<Wire> wires = new HashSet<Wire>();

            for (CandidateWiring candidateWiring : candidateBundle.getCandidateWirings())
            {
                wires.add(new Wire(candidateWiring.getPackageName(), candidateWiring.getExportDescription(), (BundleGeneration) candidateWiring.getCandidate().getGeneration()));
            }

            List<Solution.RequiredBundleWrapper> requiredBundles = new ArrayList<Solution.RequiredBundleWrapper>();

            for (RequiredBundleWrapper requiredBundle : candidateBundle.getCandidateRequiredBundles())
            {
                BundleGeneration bundleGeneration = requiredBundle.getBundleGeneration();

                for (ExportDescription description : bundleGeneration.getArchiveStore().getExportDescriptions())
                {
                    for (String packageName : description.getPackageNames())
                    {
                        Wire wire = new Wire(packageName, description, bundleGeneration);
                        requiredBundles.add(new Solution.RequiredBundleWrapper(wire, requiredBundle.isReExport()));
                    }
                }
            }
View Full Code Here

Examples of org.zkoss.zkex.wire.Wire

    Wirebox inbox = (Wirebox) request.getDesktop().getComponentByUuidIfAny((String) data.get("inbox"));
    Wirebox outbox = (Wirebox) request.getDesktop().getComponentByUuidIfAny((String) data.get("outbox"));
    if (inbox == null || outbox == null || !data.containsKey("joint"))
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] { data, request });

    Wire wire = new Wire();
    wire.setIn(inbox);
    wire.setOut(outbox);
    wire.setConfig("drawingMethod="+drawmethod);
    wire.setJoint((String) data.get("joint"));
    wire.setParent(outbox.getParent());

    return new WireEvent(request.getCommand(), outbox, wire, null);
  }
View Full Code Here

Examples of org.zkoss.zkex.wire.Wire


    String joint = (String) data.get("joint");

    ArrayList list = targetbox.getAvailableWires(joint);
    Wire unwiredWire = (Wire) list.get(0);
    if(unwiredWire == null )
      throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] { data, request });
    unwiredWire.setParent(null);
    return new WireEvent(request.getCommand(), unwiredWire.getOut(), unwiredWire, null);
  }
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.