@Service public class BindableResourcesHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGER |
static String |
LOGMESSAGE_RESOURCE |
| Constructor and Description |
|---|
BindableResourcesHelper() |
| Modifier and Type | Method and 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.
|
public static final String LOGMESSAGE_RESOURCE
public static final String LOGGER
public ResourceStatus validateBindableResourceForDuplicates(Resources resources, String jndiName, boolean validateResourceRef, String target, Class<? extends BindableResource> resourceTypeToValidate)
resources - resourcesjndiName - resource-namevalidateResourceRef - whether to validate resource-reftarget - target instance/cluster/domainresourceTypeToValidate - type of resourcepublic Class getResourceByClass(BindableResource resource)
public String getResourceTypeName(BindableResource resource)
public boolean isBindableResourceEnabled(BindableResource br)
Copyright © 2017. All rights reserved.