public class FileResolver extends Object implements ModelNodeResolver<String>
| Modifier and Type | Field and Description |
|---|---|
static FileResolver |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static String |
resolvePath(OperationContext context,
String relativeToPath,
String path)
Resolves the path based on the relative to and the path.
|
String |
resolveValue(OperationContext context,
org.jboss.dmr.ModelNode value)
Formats the attribute to the desired type.
|
public static final FileResolver INSTANCE
public String resolveValue(OperationContext context, org.jboss.dmr.ModelNode value) throws OperationFailedException
ModelNodeResolverresolveValue in interface ModelNodeResolver<String>context - the operation contextvalue - the value to formatOperationFailedException - if an error occurspublic static String resolvePath(OperationContext context, String relativeToPath, String path)
null if the service is not up.context - the operation context.relativeToPath - the relative to path, may be null.path - the path to append to the relative to path or the absolute path if the relative to path is
null.null if the services were not started.Copyright © 2014 JBoss by Red Hat. All rights reserved.