Package org.apache.servicemix.nmr.core.util

Examples of org.apache.servicemix.nmr.core.util.MapToDictionary


    public boolean match(InternalEndpoint source) {
        if (nmrEndpoint != null) {
            return source.getEndpoint() == nmrEndpoint;
        } else {
            return osgiFilter.match(new MapToDictionary(source.getMetaData()));
        }
    }
View Full Code Here


            try {
                final org.osgi.framework.Filter flt = org.osgi.framework.FrameworkUtil.createFilter(filter);
                DynamicReferenceImpl ref = new DynamicReferenceImpl(this, new Filter<InternalEndpoint>() {
                    public boolean match(InternalEndpoint endpoint) {
                        Map<String, ?> props = EndpointRegistryImpl.this.getProperties(endpoint);
                        return flt.match(new MapToDictionary(props));
                    }
                });
                this.references.put(ref, true);
                return ref;
            } catch (org.osgi.framework.InvalidSyntaxException e) {
View Full Code Here

    @Override
    protected void doRegister(InternalEndpoint endpoint, Map<String, ?> properties) {
        ServiceRegistration reg = bundleContext.registerService(
                                      InternalEndpoint.class.getName(),
                                      endpoint,
                                      new MapToDictionary(properties));
        registrations.put(endpoint, reg);
    }
View Full Code Here

        }
    }
   
    protected ServiceRegistration registerWire(Wire wire) {
        return bundle.getBundleContext().registerService(Wire.class.getName(),
                                                         wire, new MapToDictionary(wire.getFrom()));
    }
View Full Code Here

    public void register(Endpoint endpoint, Map<String, ?> properties) {
        ServiceRegistration reg = bundleContext.registerService(
                                      Endpoint.class.getName(),
                                      endpoint,
                                      new MapToDictionary(properties));
        registrations.put(endpoint, reg);
    }
View Full Code Here

                        // should not happen as this has been checked in the constructor
                    }
                }
            }
        }
        return osgiFilter.match(new MapToDictionary(epProps));
    }
View Full Code Here

    public void register(Endpoint endpoint, Map<String, ?> properties) {
        ServiceRegistration reg = bundleContext.registerService(
                                      Endpoint.class.getName(),
                                      endpoint,
                                      new MapToDictionary(properties));
        registrations.put(endpoint, reg);
    }
View Full Code Here

            try {
                final org.osgi.framework.Filter flt = org.osgi.framework.FrameworkUtil.createFilter(filter);
                DynamicReferenceImpl ref = new DynamicReferenceImpl(this, new Filter<InternalEndpoint>() {
                    public boolean match(InternalEndpoint endpoint) {
                        Map<String, ?> props = EndpointRegistryImpl.this.getProperties(endpoint);
                        return flt.match(new MapToDictionary(props));
                    }
                });
                this.references.put(ref, true);
                return ref;
            } catch (org.osgi.framework.InvalidSyntaxException e) {
View Full Code Here

            try {
                final org.osgi.framework.Filter flt = org.osgi.framework.FrameworkUtil.createFilter(filter);
                DynamicReferenceImpl ref = new DynamicReferenceImpl(this, new Filter<InternalEndpoint>() {
                    public boolean match(InternalEndpoint endpoint) {
                        Map<String, ?> props = EndpointRegistryImpl.this.getProperties(endpoint);
                        return flt.match(new MapToDictionary(props));
                    }
                    public String toString() {
                        return filter;
                    }
                });
View Full Code Here

    public boolean match(InternalEndpoint source) {
        if (nmrEndpoint != null) {
            return source.getEndpoint() == nmrEndpoint;
        } else {
            return osgiFilter.match(new MapToDictionary(source.getMetaData()));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.core.util.MapToDictionary

Copyright © 2018 www.massapicom. 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.