Class DeprecatedResourceDescriptionResolver
java.lang.Object
org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver
org.jboss.as.controller.descriptions.DeprecatedResourceDescriptionResolver
- All Implemented Interfaces:
ResourceDescriptionResolver
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
ConstructorsConstructorDescriptionDeprecatedResourceDescriptionResolver(String subsystemName, String keyPrefix, String bundleBaseName, ClassLoader bundleLoader) DeprecatedResourceDescriptionResolver(String subsystemName, String keyPrefix, String bundleBaseName, ClassLoader bundleLoader, boolean reuseAttributesForAdd, boolean useUnprefixedChildTypes) -
Method Summary
Modifier and TypeMethodDescriptiongetOperationDeprecatedDescription(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.getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's attributes.getResourceDeprecatedDescription(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 Details
-
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 Details
-
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
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
-