org.apache.servicemix.nmr.api
Interface WireRegistry

All Superinterfaces:
ServiceRegistry<Wire>

public interface WireRegistry
extends ServiceRegistry<Wire>

This registry is used to register/unregister Wires.


Method Summary
 Wire getWire(java.util.Map<java.lang.String,?> properties)
          Get the wire that matches the given properties
 void register(Wire wire)
          Convenience method for registering a wire without having to specify the wire's properties.
 void unregister(Wire wire)
          Convenience method for unregistering a wire without having to specify the wire's properties.
 
Methods inherited from interface org.apache.servicemix.nmr.api.service.ServiceRegistry
getProperties, getServices, register, unregister
 

Method Detail

getWire

Wire getWire(java.util.Map<java.lang.String,?> properties)
Get the wire that matches the given properties

Parameters:
properties - the wire's properties
Returns:
the wire or null if there's no wire to match this property set

register

void register(Wire wire)
Convenience method for registering a wire without having to specify the wire's properties. The wire will be registered using the from properties map.

Parameters:
wire - the wire to be registered

unregister

void unregister(Wire wire)
Convenience method for unregistering a wire without having to specify the wire's properties. The wire will be unregistered using the from properties map.

Parameters:
wire - the wire to be unregistered


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.