Package org.jboss.as.logging.resolvers
Class SizeResolver
- java.lang.Object
-
- org.jboss.as.logging.resolvers.SizeResolver
-
- All Implemented Interfaces:
ModelNodeResolver<String>
public class SizeResolver extends Object implements ModelNodeResolver<String>
Date: 15.12.2011- Author:
- James R. Perkins
-
-
Field Summary
Fields Modifier and Type Field Description static SizeResolverINSTANCE
-
Constructor Summary
Constructors Constructor Description SizeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longparseSize(org.jboss.dmr.ModelNode value)StringresolveValue(OperationContext context, org.jboss.dmr.ModelNode value)Formats the attribute to the desired type.
-
-
-
Field Detail
-
INSTANCE
public static final SizeResolver INSTANCE
-
-
Method Detail
-
resolveValue
public String resolveValue(OperationContext context, org.jboss.dmr.ModelNode value) throws OperationFailedException
Description copied from interface:ModelNodeResolverFormats the attribute to the desired type.- Specified by:
resolveValuein interfaceModelNodeResolver<String>- Parameters:
context- the operation contextvalue- the value to format- Returns:
- the formatted value
- Throws:
OperationFailedException- if an error occurs
-
parseSize
public long parseSize(org.jboss.dmr.ModelNode value) throws OperationFailedException- Throws:
OperationFailedException
-
-