org.glassfish.admin.cli.resources
Class ResourceUtil
java.lang.Object
org.glassfish.admin.cli.resources.ResourceUtil
@Service
public class ResourceUtil
- extends Object
- Author:
- Jagadish Ramu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceUtil
public ResourceUtil()
createResourceRef
public void createResourceRef(String jndiName,
String enabled,
String target)
throws org.jvnet.hk2.config.TransactionFailure
- Throws:
org.jvnet.hk2.config.TransactionFailure
computeEnabledValueForResourceBasedOnTarget
public String computeEnabledValueForResourceBasedOnTarget(String enabledValue,
String target)
- When enabled=false for create-***-resource (a resource that will have resource-ref)
and the --target is not domain or config, enabled value for resource
should be true and enabled value for the resource-ref should be false.
- Parameters:
enabledValue - enabledtarget - target
- Returns:
- computed value for enabled
isResourceRefInTarget
public boolean isResourceRefInTarget(String refName,
String target)
getTargetsReferringResourceRef
public Set<String> getTargetsReferringResourceRef(String refName)
deleteResourceRef
public void deleteResourceRef(String jndiName,
String target)
throws org.jvnet.hk2.config.TransactionFailure
- Throws:
org.jvnet.hk2.config.TransactionFailure
Copyright © 2012 GlassFish Community. All Rights Reserved.