org.glassfish.admin.cli.resources
Class BindableResourcesHelper
java.lang.Object
org.glassfish.admin.cli.resources.BindableResourcesHelper
@Service
public class BindableResourcesHelper
- extends Object
- Author:
- Jagadish Ramu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindableResourcesHelper
public BindableResourcesHelper()
resourceExists
public boolean resourceExists(String jndiName,
String target)
validateBindableResourceForDuplicates
public ResourceStatus validateBindableResourceForDuplicates(Resources resources,
String jndiName,
boolean validateResourceRef,
String target,
Class<? extends BindableResource> resourceTypeToValidate)
- checks whether duplicate resource exists or resource is already created but not resource-ref or
resource-ref already exists.
- Parameters:
resources - resourcesjndiName - resource-namevalidateResourceRef - whether to validate resource-reftarget - target instance/cluster/domainresourceTypeToValidate - type of resource
- Returns:
- ResourceStatus indicating Success or Failure
getResourceByClass
public Class getResourceByClass(BindableResource resource)
getResourceTypeName
public String getResourceTypeName(BindableResource resource)
Copyright © 2012 GlassFish Community. All Rights Reserved.