Class OperationInfo
java.lang.Object
org.apache.tomcat.util.modeler.FeatureInfo
org.apache.tomcat.util.modeler.OperationInfo
- All Implemented Interfaces:
Serializable
Internal configuration information for an Operation descriptor.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringImpact of the operation.protected ParameterInfo[]Array of parameters.protected final ReadWriteLockLock for parameter access.protected StringRole of the operation.Fields inherited from class FeatureInfo
description, info, name, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(ParameterInfo parameter) Add a new parameter to the set of arguments for this operation.Returns the "impact" of this operation, which should be a (case-insensitive) string value "ACTION", "ACTION_INFO", "INFO", or "UNKNOWN".protected MBeanParameterInfo[]Creates an array of MBeanParameterInfo from the operation parameters.Returns the fully qualified Java class name of the return type for this operation.getRole()Returns the role of this operation ("getter", "setter", "operation", or "constructor").Returns the array of parameters for this operation.voidSets the impact of this operation.voidsetReturnType(String returnType) Sets the return type of this operation.voidSets the role of this operation.Methods inherited from class FeatureInfo
getDescription, getName, getType, setDescription, setName, setType
-
Field Details
-
impact
Impact of the operation. -
role
Role of the operation. -
parametersLock
Lock for parameter access. -
parameters
Array of parameters.
-
-
Constructor Details
-
OperationInfo
public OperationInfo()Standard zero-arguments constructor.
-
-
Method Details
-
getImpact
Returns the "impact" of this operation, which should be a (case-insensitive) string value "ACTION", "ACTION_INFO", "INFO", or "UNKNOWN".- Returns:
- The impact of this operation
-
setImpact
Sets the impact of this operation.- Parameters:
impact- The impact value
-
getRole
Returns the role of this operation ("getter", "setter", "operation", or "constructor").- Returns:
- The role of this operation
-
setRole
-
getReturnType
Returns the fully qualified Java class name of the return type for this operation.- Returns:
- The return type
-
setReturnType
Sets the return type of this operation.- Parameters:
returnType- The return type
-
getSignature
Returns the array of parameters for this operation.- Returns:
- The parameter array
-
addParameter
Add a new parameter to the set of arguments for this operation.- Parameters:
parameter- The new parameter descriptor
-
getMBeanParameterInfo
Creates an array of MBeanParameterInfo from the operation parameters.- Returns:
- The MBean parameter info array
-