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 NonResolvingResourceDescriptionResolver
INSTANCE
-
Fields inherited from class org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
REPLY
-
-
Constructor Summary
Constructors Constructor Description NonResolvingResourceDescriptionResolver()
Deprecated.useINSTANCE
instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardResourceDescriptionResolver
getChildResolver(String key)
String
getChildTypeDescription(String childType, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's child types.String
getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's operations.String
getOperationDescription(String operationName, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's operations.String
getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's operation's parameters.String
getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's operation's parameters.String
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.String
getOperationReplyDescription(String operationName, Locale locale, ResourceBundle bundle)
Gets the description of the reply value for one of the resource's operations, ornull
if there is no description.String
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, ornull
if there is no description.String
getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's attributes.String
getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle)
Gets the description of one of the resource's attributes.String
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.ResourceBundle
getResourceBundle(Locale locale)
Returns aResourceBundle
for the givenLocale
, ornull
if this resolver is not based on resource bundles.String
getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)
Gets the description of the resource.String
getResourceDescription(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.useINSTANCE
insteadNo-arg constructor.
-
-
Method Detail
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
Description copied from class:StandardResourceDescriptionResolver
Returns aResourceBundle
for the givenLocale
, ornull
if 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:
getResourceBundle
in interfaceResourceDescriptionResolver
- Overrides:
getResourceBundle
in classStandardResourceDescriptionResolver
- Parameters:
locale
- the locale- Returns:
- the resource bundle, or
null
-
getResourceDescription
public String getResourceDescription(Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of the resource.- Specified by:
getResourceDescription
in interfaceResourceDescriptionResolver
- Overrides:
getResourceDescription
in classStandardResourceDescriptionResolver
- Parameters:
locale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getResourceAttributeDescription
public String getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of one of the resource's attributes.- Specified by:
getResourceAttributeDescription
in interfaceResourceDescriptionResolver
- Overrides:
getResourceAttributeDescription
in classStandardResourceDescriptionResolver
- Parameters:
attributeName
- the name of the attributelocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getResourceAttributeValueTypeDescription
public String getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of a portion of a complex value type of one of the resource's attributes.- Specified by:
getResourceAttributeValueTypeDescription
in interfaceResourceDescriptionResolver
- Overrides:
getResourceAttributeValueTypeDescription
in classStandardResourceDescriptionResolver
- Parameters:
attributeName
- the name of the attributelocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
suffixes
- 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:StandardResourceDescriptionResolver
Gets the description of one of the resource's operations.- Specified by:
getOperationDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationDescription
in classStandardResourceDescriptionResolver
- Parameters:
operationName
- the name of the operationlocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getOperationParameterDescription
public String getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of one of the resource's operation's parameters.- Specified by:
getOperationParameterDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationParameterDescription
in 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)
, ornull
if 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:StandardResourceDescriptionResolver
Gets the description of a portion of a complex value type of one of the resource's operation's parameters.- Specified by:
getOperationParameterValueTypeDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationParameterValueTypeDescription
in 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)
, ornull
if that call returnednull
suffixes
- 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:StandardResourceDescriptionResolver
Gets the description of the reply value for one of the resource's operations, ornull
if there is no description.- Specified by:
getOperationReplyDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationReplyDescription
in classStandardResourceDescriptionResolver
- Parameters:
operationName
- the name of the operationlocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if 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:StandardResourceDescriptionResolver
Gets the description of a portion of a complex value type of the reply value for one of the resource's operations, ornull
if there is no description.- Specified by:
getOperationReplyValueTypeDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationReplyValueTypeDescription
in classStandardResourceDescriptionResolver
- Parameters:
operationName
- the name of the operationlocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
suffixes
- 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:StandardResourceDescriptionResolver
Gets the description of one of the resource's child types.- Specified by:
getChildTypeDescription
in interfaceResourceDescriptionResolver
- Overrides:
getChildTypeDescription
in classStandardResourceDescriptionResolver
- Parameters:
childType
- the name of the child typelocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getResourceDeprecatedDescription
public String getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of the resource.- Specified by:
getResourceDeprecatedDescription
in interfaceResourceDescriptionResolver
- Overrides:
getResourceDeprecatedDescription
in classStandardResourceDescriptionResolver
- Parameters:
locale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getResourceAttributeDeprecatedDescription
public String getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of one of the resource's attributes.- Specified by:
getResourceAttributeDeprecatedDescription
in interfaceResourceDescriptionResolver
- Overrides:
getResourceAttributeDeprecatedDescription
in classStandardResourceDescriptionResolver
- Parameters:
attributeName
- the name of the attributelocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getOperationDeprecatedDescription
public String getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of one of the resource's operations.- Specified by:
getOperationDeprecatedDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationDeprecatedDescription
in classStandardResourceDescriptionResolver
- Parameters:
operationName
- the name of the operationlocale
- the localebundle
- a resource bundle previously obtained from a call toResourceDescriptionResolver.getResourceBundle(java.util.Locale)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getOperationParameterDeprecatedDescription
public String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
Description copied from class:StandardResourceDescriptionResolver
Gets the description of one of the resource's operation's parameters.- Specified by:
getOperationParameterDeprecatedDescription
in interfaceResourceDescriptionResolver
- Overrides:
getOperationParameterDeprecatedDescription
in 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)
, ornull
if that call returnednull
- Returns:
- the localized description
-
getChildResolver
public StandardResourceDescriptionResolver getChildResolver(String key)
- Overrides:
getChildResolver
in classStandardResourceDescriptionResolver
-
-