Class ChildResourceDescriptionResolver
java.lang.Object
org.jboss.as.controller.descriptions.ChildResourceDescriptionResolver
- All Implemented Interfaces:
ParentResourceDescriptionResolver,ResourceDescriptionResolver
public class ChildResourceDescriptionResolver
extends Object
implements ParentResourceDescriptionResolver
Generates resource descriptions for a child resource of a subsystem.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptioncreateChildResolver(PathElement path, List<PathElement> alternatePaths) Creates aResourceDescriptionResolverwhose descriptions are located via keys generated from the specified path, or the alternate path if no description was found.getChildTypeDescription(String childType, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's child types.getNotificationDescription(String notificationType, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's notification.getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operations.getOperationDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operations.getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operation's parameters.getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operation's parameters.getOperationParameterValueTypeDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of one of the resource's operation's parameters.getOperationReplyDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of the reply value for one of the resource's operations, ornullif there is no description.getOperationReplyValueTypeDescription(String operationName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of the reply value for one of the resource's operations, ornullif there is no description.getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's attributes.getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's attributes.getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of one of the resource's attributes.getResourceBundle(Locale locale) Returns aResourceBundlefor the givenLocale, ornullif this resolver is not based on resource bundles.getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle) Gets the description of the resource.getResourceDescription(Locale locale, ResourceBundle bundle) Gets the description of the resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.descriptions.ParentResourceDescriptionResolver
createChildResolver, createChildResolver, createChildResolver, createChildResolver, createChildResolver
-
Method Details
-
createChildResolver
public ParentResourceDescriptionResolver createChildResolver(PathElement path, List<PathElement> alternatePaths) Description copied from interface:ParentResourceDescriptionResolverCreates aResourceDescriptionResolverwhose descriptions are located via keys generated from the specified path, or the alternate path if no description was found.- Specified by:
createChildResolverin interfaceParentResourceDescriptionResolver- Parameters:
path- a path element used to generate description keys- Returns:
- a resolver of resource descriptions
-
getResourceBundle
Description copied from interface:ResourceDescriptionResolverReturns aResourceBundlefor the givenLocale, ornullif this resolver is not based on resource bundles.This method will be invoked at least once before a series of invocations of the other methods in this interface, and the returned bundle will be passed to those methods as a parameter. The intent is to cache a resource bundle on the stack during the execution of all the methods needed to describe a resource or operation.
- Specified by:
getResourceBundlein interfaceResourceDescriptionResolver- Parameters:
locale- the locale- Returns:
- the resource bundle, or
null
-
getResourceDescription
Description copied from interface:ResourceDescriptionResolverGets the description of the resource.- Specified by:
getResourceDescriptionin interfaceResourceDescriptionResolver- Parameters:
locale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceAttributeDescription
public String getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's attributes.- Specified by:
getResourceAttributeDescriptionin interfaceResourceDescriptionResolver- Parameters:
attributeName- the name of the attributelocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceAttributeValueTypeDescription
public String getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes) Description copied from interface:ResourceDescriptionResolverGets the description of a portion of a complex value type of one of the resource's attributes.- Specified by:
getResourceAttributeValueTypeDescriptionin interfaceResourceDescriptionResolver- Parameters:
attributeName- the name of the attributelocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednullsuffixes- suffixes to dot-append to the base attribute key to generate a key- Returns:
- the localized description
-
getOperationDescription
Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's operations.- Specified by:
getOperationDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationParameterDescription
public String getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's operation's parameters.- Specified by:
getOperationParameterDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationparamName- the name of the operation's parameterlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationParameterValueTypeDescription
public String getOperationParameterValueTypeDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle, String... suffixes) Description copied from interface:ResourceDescriptionResolverGets the description of a portion of a complex value type of one of the resource's operation's parameters.- Specified by:
getOperationParameterValueTypeDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationparamName- the name of the operation's parameterlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednullsuffixes- suffixes to dot-append to the base attribute key to generate a key- Returns:
- the localized description
-
getOperationReplyDescription
public String getOperationReplyDescription(String operationName, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of the reply value for one of the resource's operations, ornullif there is no description.- Specified by:
getOperationReplyDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description , or
null
-
getOperationReplyValueTypeDescription
public String getOperationReplyValueTypeDescription(String operationName, Locale locale, ResourceBundle bundle, String... suffixes) Description copied from interface:ResourceDescriptionResolverGets the description of a portion of a complex value type of the reply value for one of the resource's operations, ornullif there is no description.- Specified by:
getOperationReplyValueTypeDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednullsuffixes- suffixes to dot-append to the base attribute key to generate a key- Returns:
- the localized description , or
null
-
getNotificationDescription
public String getNotificationDescription(String notificationType, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's notification.- Specified by:
getNotificationDescriptionin interfaceResourceDescriptionResolver- Parameters:
notificationType- the type of the notificationlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getChildTypeDescription
Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's child types.- Specified by:
getChildTypeDescriptionin interfaceResourceDescriptionResolver- Parameters:
childType- the name of the child typelocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceDeprecatedDescription
Description copied from interface:ResourceDescriptionResolverGets the description of the resource.- Specified by:
getResourceDeprecatedDescriptionin interfaceResourceDescriptionResolver- Parameters:
locale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceAttributeDeprecatedDescription
public String getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's attributes.- Specified by:
getResourceAttributeDeprecatedDescriptionin interfaceResourceDescriptionResolver- Parameters:
attributeName- the name of the attributelocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationDeprecatedDescription
public String getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's operations.- Specified by:
getOperationDeprecatedDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationParameterDeprecatedDescription
public String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Description copied from interface:ResourceDescriptionResolverGets the description of one of the resource's operation's parameters.- Specified by:
getOperationParameterDeprecatedDescriptionin interfaceResourceDescriptionResolver- Parameters:
operationName- the name of the operationparamName- the name of the operation's parameterlocale- the localebundle- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-