Class DeprecatedResourceDescriptionResolver
- java.lang.Object
-
- org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
-
- org.jboss.as.controller.descriptions.DeprecatedResourceDescriptionResolver
-
- All Implemented Interfaces:
ResourceDescriptionResolver
public class DeprecatedResourceDescriptionResolver extends StandardResourceDescriptionResolver
Resource resolver that in case that doesn't find deprecated description uses subsystem-name.deprecated key. This is useful when you need to deprecate whole subsystem and don't want to add deprecated key entries for each any every resource / attribute / operation- Author:
- Tomaz Cerar (c) 2015 Red Hat Inc.
-
-
Field Summary
-
Fields inherited from class org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
REPLY
-
-
Constructor Summary
Constructors Constructor Description DeprecatedResourceDescriptionResolver(String subsystemName, String keyPrefix, String bundleBaseName, ClassLoader bundleLoader)DeprecatedResourceDescriptionResolver(String subsystemName, String keyPrefix, String bundleBaseName, ClassLoader bundleLoader, boolean reuseAttributesForAdd, boolean useUnprefixedChildTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOperationDeprecatedDescription(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.StringgetResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle)Gets the description of one of the resource's attributes.StringgetResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)Gets the description of the resource.-
Methods inherited from class org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
getBundleKey, getChildResolver, getChildTypeDescription, getKeyPrefix, getNotificationDescription, getOperationDescription, getOperationParameterDescription, getOperationParameterValueTypeDescription, getOperationReplyDescription, getOperationReplyValueTypeDescription, getResourceAttributeDescription, getResourceAttributeValueTypeDescription, getResourceBundle, getResourceDescription, getVariableBundleKey, isReuseAttributesForAdd, isUseUnprefixedChildTypes
-
-
-
-
Constructor Detail
-
DeprecatedResourceDescriptionResolver
public DeprecatedResourceDescriptionResolver(String subsystemName, String keyPrefix, String bundleBaseName, ClassLoader bundleLoader)
-
DeprecatedResourceDescriptionResolver
public DeprecatedResourceDescriptionResolver(String subsystemName, String keyPrefix, String bundleBaseName, ClassLoader bundleLoader, boolean reuseAttributesForAdd, boolean useUnprefixedChildTypes)
-
-
Method Detail
-
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
-
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
-
-