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 creatingServiceNameinstances 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.ServiceNameparseServiceName(String toParse)Parses a string into aServiceNameusing the same algorithm asServiceName.parse(String)but also attempts to ensure that once parsing occurs if any other name that isequal tothe parsed name or one of itsancestorshas 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 aServiceNameusing the same algorithm asServiceName.parse(String)but also attempts to ensure that once parsing occurs if any other name that isequal tothe parsed name or one of itsancestorshas been parsed previously that that previously parsed name is used.- Parameters:
toParse- the string form of a service name. Cannot benull- Returns:
- a
ServiceNameinstance
-
-