Class ServiceNameMapper<V>


  • @Deprecated
    public final class ServiceNameMapper<V>
    extends Object
    Deprecated.
    This class will be removed in a future release.
    A mapper for service names which allows a service name or pattern to be correlated with a value. If more than one pattern matches a service name, the best match is chosen; if there are multiple best matches then an arbitrary one is selected.
    Author:
    David M. Lloyd
    • Field Detail

      • ANY

        public static final Object ANY
        Deprecated.
        The special marker which represents a pattern match.
    • Constructor Detail

      • ServiceNameMapper

        public ServiceNameMapper()
        Deprecated.
    • Method Detail

      • registerMatcher

        public void registerMatcher​(V value,
                                    Object... segments)
        Deprecated.
        Register a matcher for a specific location.
        Parameters:
        value - the value to register
        segments - the segments to match
      • match

        public V match​(ServiceName serviceName)
        Deprecated.
        Attempt to match a service name.
        Parameters:
        serviceName - the service name
        Returns:
        the value result, or null if no match was found