Package org.jboss.as.controller
Class ServiceNameFactory
- java.lang.Object
-
- org.jboss.as.controller.ServiceNameFactory
-
public final class ServiceNameFactory extends Object
Provides a factory for creatingServiceName
instances from dot-separated strings while trying to mitigate the memory overhead of having multiple copies of elements of the name that have the samesimple name
.- Author:
- Brian Stansberry
-
-
Constructor Summary
Constructors Constructor Description ServiceNameFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jboss.msc.service.ServiceName
parseServiceName(String toParse)
Parses a string into aServiceName
using the same algorithm asServiceName.parse(String)
but also attempts to ensure that once parsing occurs if any other name that isequal to
the parsed name or one of itsancestors
has been parsed previously that that previously parsed name is used.
-
-
-
Method Detail
-
parseServiceName
public static org.jboss.msc.service.ServiceName parseServiceName(String toParse)
Parses a string into aServiceName
using the same algorithm asServiceName.parse(String)
but also attempts to ensure that once parsing occurs if any other name that isequal to
the parsed name or one of itsancestors
has been parsed previously that that previously parsed name is used.- Parameters:
toParse
- the string form of a service name. Cannot benull
- Returns:
- a
ServiceName
instance
-
-