Class BindableResourcesHelper
- java.lang.Object
-
- org.glassfish.resourcebase.resources.util.BindableResourcesHelper
-
@Service public class BindableResourcesHelper extends Object
- Author:
- Jagadish Ramu
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOGGER
static String
LOGMESSAGE_RESOURCE
-
Constructor Summary
Constructors Constructor Description BindableResourcesHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getResourceByClass(BindableResource resource)
String
getResourceTypeName(BindableResource resource)
boolean
isBindableResourceEnabled(BindableResource br)
boolean
resourceExists(String jndiName, String target)
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.
-
-
-
Field Detail
-
LOGMESSAGE_RESOURCE
public static final String LOGMESSAGE_RESOURCE
- See Also:
- Constant Field Values
-
LOGGER
public static final String LOGGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
isBindableResourceEnabled
public boolean isBindableResourceEnabled(BindableResource br)
-
-