org.apache.servicemix.nmr.core
Class WireRegistryImpl
java.lang.Object
org.apache.servicemix.nmr.core.ServiceRegistryImpl<Wire>
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WireRegistryImpl
public WireRegistryImpl()
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.