Package org.jboss.as.controller
Class ModuleIdentifierUtil
- java.lang.Object
-
- org.jboss.as.controller.ModuleIdentifierUtil
-
@Deprecated(forRemoval=true, since="28.0.0") public final class ModuleIdentifierUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.useJBossModulesNameUtilinsteadProvides utilities related to working with names of JBoss Modules modules.
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterCorrectorMODULE_NAME_CORRECTORDeprecated, for removal: This API element is subject to removal in a future version.useJBossModulesNameUtil.parseCanonicalModuleIdentifier(java.lang.String)after resolving your attribute value in your step handler.
-
Constructor Summary
Constructors Constructor Description ModuleIdentifierUtil()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringcanonicalModuleIdentifier(String moduleSpec)Deprecated, for removal: This API element is subject to removal in a future version.static StringcanonicalModuleIdentifier(String name, String slot)Deprecated, for removal: This API element is subject to removal in a future version.static <R> RparseModuleIdentifier(String moduleIdentifier, BiFunction<String,String,R> function)Deprecated, for removal: This API element is subject to removal in a future version.static <R> RparseModuleIdentifier(String moduleIdentifier, BiFunction<String,String,R> function, boolean canonicalize)Deprecated, for removal: This API element is subject to removal in a future version.static <R> RparseModuleIdentifier(String moduleIdentifier, BiFunction<String,String,R> function, boolean canonicalize, String defaultSlot)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
MODULE_NAME_CORRECTOR
@Deprecated(forRemoval=true, since="28.0.0") public static final ParameterCorrector MODULE_NAME_CORRECTOR
Deprecated, for removal: This API element is subject to removal in a future version.useJBossModulesNameUtil.parseCanonicalModuleIdentifier(java.lang.String)after resolving your attribute value in your step handler.AParameterCorrectorthatcanonicalizesvalues that are meant to represent JBoss Modules module names.
-
-
Method Detail
-
canonicalModuleIdentifier
@Deprecated(forRemoval=true, since="28.0.0") public static String canonicalModuleIdentifier(String moduleSpec)
Deprecated, for removal: This API element is subject to removal in a future version.Provides the canonical string representation of a module identifier from a string of the formname[:slot]. The canonical representation will not include slot information if the slot ismain.- Parameters:
moduleSpec- a module name specification in the formname[:slot]. Cannot benull- Returns:
- the canonical representation. Will not return @{code null}
-
parseModuleIdentifier
@Deprecated(forRemoval=true, since="28.0.0") public static <R> R parseModuleIdentifier(String moduleIdentifier, BiFunction<String,String,R> function)
Deprecated, for removal: This API element is subject to removal in a future version.Parses the given module identifier into name and optional slot elements, passing those to the given function and returning the result of that function. This variant does notcanonicalizethe given identifier.- Type Parameters:
R- the type returned byfunction- Parameters:
moduleIdentifier- an identifier for a module. Cannot benullfunction- a function to apply to the module's name and optional slot. Cannot benull. The slot value passed to the function may be null if the identifier does not contain one.- Returns:
- the value returned by
function
-
parseModuleIdentifier
@Deprecated(forRemoval=true, since="28.0.0") public static <R> R parseModuleIdentifier(String moduleIdentifier, BiFunction<String,String,R> function, boolean canonicalize)
Deprecated, for removal: This API element is subject to removal in a future version.Parses the given module identifier into name and optional slot elements, passing those to the given function and returning the result of that function.- Type Parameters:
R- the type returned byfunction- Parameters:
moduleIdentifier- an identifier for a module. Cannot benullfunction- a function to apply to the module's name and optional slot. Cannot benull. The slot value passed to the function may be null if the identifier does not contain one.canonicalize- iftruethe identifier will becanonicalizedbefore parsing- Returns:
- the value returned by
function
-
parseModuleIdentifier
@Deprecated(forRemoval=true, since="28.0.0") public static <R> R parseModuleIdentifier(String moduleIdentifier, BiFunction<String,String,R> function, boolean canonicalize, String defaultSlot)
Deprecated, for removal: This API element is subject to removal in a future version.Parses the given module identifier into name and optional slot elements, passing those to the given function and returning the result of that function.- Type Parameters:
R- the type returned byfunction- Parameters:
moduleIdentifier- an identifier for a module. Cannot benullfunction- a function to apply to the module's name and optional slot. Cannot benull. The slot value passed to the function may be null if the identifier does not contain one.canonicalize- iftruethe identifier will becanonicalizedbefore parsingdefaultSlot- string to pass tofunctionas the slot parameter if the identifier doesn't include a slot value. May benull- Returns:
- the value returned by
function
-
canonicalModuleIdentifier
@Deprecated(forRemoval=true, since="28.0.0") public static String canonicalModuleIdentifier(String name, String slot)
Deprecated, for removal: This API element is subject to removal in a future version.Provides the canonical string representation of a module identifier from a base module name and an optional slot. The canonical representation will not include slot information if the slot ismain.- Parameters:
name- the base module name. Cannot benullslot- the module slot. May be @{code null}- Returns:
- the canonical representation. Will not return @{code null}
-
-