Package org.jboss.msc.service
Class ServiceNameMapper<V>
- java.lang.Object
-
- org.jboss.msc.service.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
-
-
Constructor Summary
Constructors Constructor Description ServiceNameMapper()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description V
match(ServiceName serviceName)
Deprecated.Attempt to match a service name.void
registerMatcher(V value, Object... segments)
Deprecated.Register a matcher for a specific location.
-
-
-
Field Detail
-
ANY
public static final Object ANY
Deprecated.The special marker which represents a pattern match.
-
-
Method Detail
-
registerMatcher
public void registerMatcher(V value, Object... segments)
Deprecated.Register a matcher for a specific location.- Parameters:
value
- the value to registersegments
- 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
-
-