Examples of Binding


Examples of org.apache.flex.compiler.internal.as.codegen.Binding

        }
        else if (parent instanceof IMXMLPropertySpecifierNode && dbnode instanceof IMXMLSingleDataBindingNode)
        {
            IMXMLPropertySpecifierNode psn = (IMXMLPropertySpecifierNode)parent;
            IDefinition d = psn.getDefinition();
            Binding b = host.getInstanceScope().getBinding(d);
            INamespaceReference ns = psn.getDefinition().getNamespaceReference();
            if (ns != NamespaceDefinition.getPublicNamespaceDefinition())
            {
                InstructionList insns = new InstructionList();
                insns.addInstruction(OP_getlocal0);
                insns.addInstruction(OP_getlocal1);
                insns.addInstruction(OP_setproperty, b.getName());
                ret = new InstructionListNode(insns);    // Wrap the IL in a node and return it
            }
        }
        return ret;  
    }
View Full Code Here

Examples of org.apache.jackrabbit.mk.store.Binding

        } else {
            key.put(ID_FIELD, id.toString());
        }
        final BasicDBObject nodeObject = (BasicDBObject) nodes.findOne(key);
        if (nodeObject != null) {
            Binding binding;
            if (BINARY_FORMAT) {
                byte[] bytes = (byte[]) nodeObject.get(DATA_FIELD);
                binding = new BinaryBinding(new ByteArrayInputStream(bytes));
            } else {
                binding = new DBObjectBinding(nodeObject);
View Full Code Here

Examples of org.apache.mina.integration.spring.Binding

       
        /*
         * Create the bindings to use.
         */
        bindings = new Binding[ 3 ];
        bindings[ 0 ] = new Binding( ":110", popHandler, new IoFilter[] { filter1 } );
        bindings[ 1 ] = new Binding( "127.0.0.1:22", sshHandler, new IoFilter[] { filter1, filter2 } );
        bindings[ 2 ] = new Binding( "192.168.0.1:80", httpHandler );
    }
View Full Code Here

Examples of org.apache.muse.management.binding.Binding

      break;
    case ServiceEvent.REGISTERED:
      ref = event.getServiceReference();
      bindings.put(ref, ref);
      //FIXME push functionality down to contribution manager
      Binding binding = (Binding)context.getService(ref);
      osgiContributionManager.bind(binding);
      break;
    case ServiceEvent.UNREGISTERING:
      bindings.remove(ref);
      break;
View Full Code Here

Examples of org.apache.qpid.client.AMQDestination.Binding

        List<Map> bindingList = (props == null) ? Collections.EMPTY_LIST : (List<Map>) props.get(X_BINDINGS);
        if (bindingList != null)
        {
            for (Map bindingMap : bindingList)
            {
                Binding binding = new Binding(
                        (String) bindingMap.get(EXCHANGE),
                        (String) bindingMap.get(QUEUE),
                        (String) bindingMap.get(KEY),
                        bindingMap.get(ARGUMENTS) == null ? Collections.EMPTY_MAP
                                : (Map<String, Object>) bindingMap
View Full Code Here

Examples of org.apache.qpid.server.binding.Binding

     */
    private void validateBindingProperties(List<Binding> bindings, boolean useSelectors)
    {
        assertEquals("Each queue should only be bound once.", 1, bindings.size());

        Binding binding = bindings.get(0);

        if (useSelectors)
        {
            assertTrue("Binding does not contain a Selector argument.",
                    binding.getArguments().containsKey(AMQPFilterTypes.JMS_SELECTOR.toString()));
            assertEquals("The binding selector argument is incorrect", SELECTOR_VALUE,
                    binding.getArguments().get(AMQPFilterTypes.JMS_SELECTOR.toString()).toString());
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.model.Binding

                                queue.delete();
                            }
                        }
                        else if (type.equals("binding")) // delete binding.
                        {
                            Binding binding = nameParser.getBinding();
                            if (binding != null)
                            {
                                binding.delete();
                            }
                        }

                        agent.methodResponse(methodName, handle, outArgs, null);
                    }
View Full Code Here

Examples of org.apache.servicemix.soap.api.model.Binding

        fromNMSAttachments(message, nm);
        fromNMSHeaders(message, nm);

        if (!server) {
            MessageExchange me = message.getContent(MessageExchange.class);
            Binding binding = message.get(Binding.class);
            Operation operation = binding.getOperation(me.getOperation());
            if (operation != null) {
                if (!me.getPattern().equals(operation.getMep())) {
                    throw new Fault("Received incorrect exchange mep.  Received " + me.getPattern()
                                    + " but expected " + operation.getMep() + " for operation "
                                    + operation.getName());
View Full Code Here

Examples of org.apache.tapestry.Binding

    private static final Throwable _exception = new RuntimeException(MESSAGE);

    @Test
    public void to_string_and_location()
    {
        Binding inner = mockBinding();
        Location l = mockLocation();

        replay();

        InheritedBinding binding = new InheritedBinding(BINDING_DESCRIPTION, inner, l);
View Full Code Here

Examples of org.apache.tapestry5.Binding

    public void is_invariant()
    {
        Page page = newPage(PAGE_NAME);
        Component component = mockComponent();
        ComponentModel model = mockComponentModel();
        Binding binding = mockBinding();
        TypeCoercer coercer = mockTypeCoercer();
        ParameterModel pmodel = mockParameterModel();
        Logger logger = mockLogger();

        train_getLogger(model, logger);
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.