org.apache.servicemix.nmr.core
Class WireRegistryImpl

java.lang.Object
  extended by org.apache.servicemix.nmr.core.ServiceRegistryImpl<Wire>
      extended by org.apache.servicemix.nmr.core.WireRegistryImpl
All Implemented Interfaces:
ServiceRegistry<Wire>, WireRegistry

public class WireRegistryImpl
extends ServiceRegistryImpl<Wire>
implements WireRegistry

Default implementation for a WireRegistry


Constructor Summary
WireRegistryImpl()
           
 
Method Summary
 Wire getWire(Map<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 class org.apache.servicemix.nmr.core.ServiceRegistryImpl
doRegister, doUnregister, getProperties, getServices, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.nmr.api.service.ServiceRegistry
getProperties, getServices, register, unregister
 

Constructor Detail

WireRegistryImpl

public WireRegistryImpl()
Method Detail

getWire

public Wire getWire(Map<String,?> properties)
Description copied from interface: WireRegistry
Get the wire that matches the given properties

Specified by:
getWire in interface WireRegistry
Parameters:
properties - the wire's properties
Returns:
the wire or null if there's no wire to match this property set

register

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

Specified by:
register in interface WireRegistry
Parameters:
wire - the wire to be registered

unregister

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

Specified by:
unregister in interface WireRegistry
Parameters:
wire - the wire to be unregistered


Copyright © 2005-2012 FuseSource. All Rights Reserved.