public interface ServiceNameProvider
RuntimeCapability uses to provide service names
to users of the capability.| Modifier and Type | Interface and Description |
|---|---|
static class |
ServiceNameProvider.DefaultProvider
Default
ServiceNameProvider implementation that provides
a service name that is created by splitting the capability name
on any '.' character. |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.msc.service.ServiceName |
getCapabilityServiceName(Class<?> serviceType)
Gets the name of a service provided by the capability.
|
org.jboss.msc.service.ServiceName |
getCapabilityServiceName(Class<?> serviceType,
String dynamicPortion)
Gets the name of a service provided by the capability, including a dynamic portion
of the capability name that won't be known at compile time.
|
org.jboss.msc.service.ServiceName getCapabilityServiceName(Class<?> serviceType)
serviceType - the expected type of the service's value. Cannot be nullnullIllegalArgumentException - if serviceType is null or
the capability does not provide a service of type serviceTypeorg.jboss.msc.service.ServiceName getCapabilityServiceName(Class<?> serviceType, String dynamicPortion)
serviceType - the expected type of the service's value. Cannot be nulldynamicPortion - the dynamic portion of the name. Cannot be nullnullIllegalArgumentException - if serviceType is null or
the capability does not provide a service of type serviceTypeCopyright © 2015 JBoss by Red Hat. All rights reserved.