Class NonResolvingResourceDescriptionResolver
- java.lang.Object
-
- org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
-
- org.jboss.as.controller.descriptions.NonResolvingResourceDescriptionResolver
-
- All Implemented Interfaces:
ResourceDescriptionResolver
public class NonResolvingResourceDescriptionResolver extends StandardResourceDescriptionResolver
Resource description resolver that does no resolving at all.- Author:
- Tomaz Cerar (c) 2012 Red Hat Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static NonResolvingResourceDescriptionResolverINSTANCE-
Fields inherited from class org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
REPLY
-
-
Constructor Summary
Constructors Constructor Description NonResolvingResourceDescriptionResolver()Deprecated.useINSTANCEinstead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardResourceDescriptionResolvergetChildResolver(String key)StringgetChildTypeDescription(String childType, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's child types.StringgetOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's operations.StringgetOperationDescription(String operationName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's operations.StringgetOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's operation's parameters.StringgetOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's operation's parameters.StringgetOperationParameterValueTypeDescription(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.StringgetOperationReplyDescription(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.StringgetOperationReplyValueTypeDescription(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.StringgetResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's attributes.StringgetResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's attributes.StringgetResourceAttributeValueTypeDescription(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.ResourceBundlegetResourceBundle(Locale locale)Returns aResourceBundlefor the givenLocale, ornullif this resolver is not based on resource bundles.StringgetResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)Gets the description of the resource.StringgetResourceDescription(Locale locale, ResourceBundle bundle)Gets the description of the resource.-
Methods inherited from class org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
getBundleKey, getKeyPrefix, getNotificationDescription, getVariableBundleKey, isReuseAttributesForAdd, isUseUnprefixedChildTypes
-
-
-
-
Field Detail
-
INSTANCE
public static final NonResolvingResourceDescriptionResolver INSTANCE
-
-
Constructor Detail
-
NonResolvingResourceDescriptionResolver
@Deprecated public NonResolvingResourceDescriptionResolver()
Deprecated.useINSTANCEinsteadNo-arg constructor.
-
-
Method Detail
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
Description copied from class:StandardResourceDescriptionResolverReturns 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- Overrides:
getResourceBundlein classStandardResourceDescriptionResolver- Parameters:
locale- the locale- Returns:
- the resource bundle, or
null
-
getResourceDescription
public String getResourceDescription(Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolverGets the description of the resource.- Specified by:
getResourceDescriptionin interfaceResourceDescriptionResolver- Overrides:
getResourceDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of one of the resource's attributes.- Specified by:
getResourceAttributeDescriptionin interfaceResourceDescriptionResolver- Overrides:
getResourceAttributeDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of a portion of a complex value type of one of the resource's attributes.- Specified by:
getResourceAttributeValueTypeDescriptionin interfaceResourceDescriptionResolver- Overrides:
getResourceAttributeValueTypeDescriptionin classStandardResourceDescriptionResolver- 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
public String getOperationDescription(String operationName, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolverGets the description of one of the resource's operations.- Specified by:
getOperationDescriptionin interfaceResourceDescriptionResolver- Overrides:
getOperationDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of one of the resource's operation's parameters.- Specified by:
getOperationParameterDescriptionin interfaceResourceDescriptionResolver- Overrides:
getOperationParameterDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of a portion of a complex value type of one of the resource's operation's parameters.- Specified by:
getOperationParameterValueTypeDescriptionin interfaceResourceDescriptionResolver- Overrides:
getOperationParameterValueTypeDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of the reply value for one of the resource's operations, ornullif there is no description.- Specified by:
getOperationReplyDescriptionin interfaceResourceDescriptionResolver- Overrides:
getOperationReplyDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets 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- Overrides:
getOperationReplyValueTypeDescriptionin classStandardResourceDescriptionResolver- 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
-
getChildTypeDescription
public String getChildTypeDescription(String childType, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolverGets the description of one of the resource's child types.- Specified by:
getChildTypeDescriptionin interfaceResourceDescriptionResolver- Overrides:
getChildTypeDescriptionin classStandardResourceDescriptionResolver- 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
public String getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolverGets the description of the resource.- Specified by:
getResourceDeprecatedDescriptionin interfaceResourceDescriptionResolver- Overrides:
getResourceDeprecatedDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of one of the resource's attributes.- Specified by:
getResourceAttributeDeprecatedDescriptionin interfaceResourceDescriptionResolver- Overrides:
getResourceAttributeDeprecatedDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of one of the resource's operations.- Specified by:
getOperationDeprecatedDescriptionin interfaceResourceDescriptionResolver- Overrides:
getOperationDeprecatedDescriptionin classStandardResourceDescriptionResolver- 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 class:StandardResourceDescriptionResolverGets the description of one of the resource's operation's parameters.- Specified by:
getOperationParameterDeprecatedDescriptionin interfaceResourceDescriptionResolver- Overrides:
getOperationParameterDeprecatedDescriptionin classStandardResourceDescriptionResolver- 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
-
getChildResolver
public StandardResourceDescriptionResolver getChildResolver(String key)
- Overrides:
getChildResolverin classStandardResourceDescriptionResolver
-
-